]> iEval git - unical.git/commitdiff
Revert commit 245dbc0190839dac5210a2779bd9061636e1d383.
authorMarius Gavrilescu <marius@ieval.ro>
Sun, 14 Jul 2013 21:37:37 +0000 (00:37 +0300)
committerMarius Gavrilescu <marius@ieval.ro>
Sun, 14 Jul 2013 21:37:37 +0000 (00:37 +0300)
res/layout/add_event_basic_tab.xml
res/layout/add_event_details_tab.xml
src/ro/ieval/unical/AddEventActivity.java

index f8c5a1da0faca6569a7bc61097020e18f8485c7a..05b98ab1e4ca4c39dcddc9f2e456af589db3c5b6 100644 (file)
@@ -2,8 +2,7 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:orientation="vertical"
-       android:id="@+id/basic_tab" >
+    android:orientation="vertical" >
 
     <EditText
         android:inputType="text"
index 3e74d5f9c9f7a8920111a9aad55ccf4485f7b359..10d8b77fa9e141a2218568694c17bc48d4ec8bc9 100644 (file)
@@ -2,8 +2,7 @@
 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     android:layout_width="match_parent"
     android:layout_height="match_parent"
-    android:orientation="vertical"
-       android:id="@+id/details_tab" >
+    android:orientation="vertical" >
 
     <EditText
         android:id="@+id/description"
index 3971036fc775268264ae1f610cc4cbb20b05bcb8..976f4ebcbf168035c9096b8e6b4ed11501664f0d 100644 (file)
@@ -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 String organizer="";
-        final String title=((EditText)basicFragment.getView().findViewById(R.id.eventtitle)).getText().toString();
+        final String title=((EditText)v.findViewById(R.id.eventtitle)).getText().toString();
         final String eventLocation="";
-        final String description=((EditText)detailsFragment.getView().findViewById(R.id.description)).getText().toString();
+        final String description=((EditText)v.findViewById(R.id.description)).getText().toString();
         final int eventColor=0;
         final long dtstart=0;
         final long dtend=0;
This page took 0.01996 seconds and 4 git commands to generate.