X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=src%2Fro%2Fieval%2Funical%2FAddEventActivity.java;h=6284b732076cffc93c1e6937f3fc01270c21a567;hb=5835912b53529d21c80bc395ab6b26d176b88b7b;hp=3971036fc775268264ae1f610cc4cbb20b05bcb8;hpb=245dbc0190839dac5210a2779bd9061636e1d383;p=unical.git diff --git a/src/ro/ieval/unical/AddEventActivity.java b/src/ro/ieval/unical/AddEventActivity.java index 3971036..6284b73 100644 --- a/src/ro/ieval/unical/AddEventActivity.java +++ b/src/ro/ieval/unical/AddEventActivity.java @@ -77,15 +77,12 @@ public final class AddEventActivity extends Activity implements OnDateSetListene } private Event getEvent(final Activity v) { - final Fragment basicFragment = v.getFragmentManager().findFragmentById(R.id.basic_tab); - final Fragment detailsFragment = v.getFragmentManager().findFragmentById(R.id.details_tab); - //TODO get all information - final long _id=22; + final long _id=23;//blatul olimpic final String organizer=""; - final String title=((EditText)basicFragment.getView().findViewById(R.id.eventtitle)).getText().toString(); + final String title=""; final String eventLocation=""; - final String description=((EditText)detailsFragment.getView().findViewById(R.id.description)).getText().toString(); + final String description=""; final int eventColor=0; final long dtstart=0; final long dtend=0; @@ -114,7 +111,7 @@ public final class AddEventActivity extends Activity implements OnDateSetListene public void onDateSet(final DatePicker picker, final int year, final int monthOfYear, final int dayOfMonth) { final Calendar calendar=new GregorianCalendar(year, monthOfYear, dayOfMonth); dateTimeTextView.setText(Utils.formatDate(year, monthOfYear, dayOfMonth)); - calendar.add(Calendar.DAY_OF_MONTH, 1); + //calendar.add(Calendar.DAY_OF_MONTH, 1); if(dateTimeTextView.getId() == R.id.date_start) ((TextView)findViewById(R.id.date_end)).setText(Utils.formatDate(calendar.get(Calendar.YEAR), calendar.get(Calendar.MONTH), calendar.get(Calendar.DAY_OF_MONTH))); }