Bugfix
authorPetru <l3asketballplayer@yahoo.com>
Thu, 22 Aug 2013 22:24:05 +0000 (01:24 +0300)
committerPetru <l3asketballplayer@yahoo.com>
Thu, 22 Aug 2013 22:24:05 +0000 (01:24 +0300)
End date was not saved correctly

res/layout/add_event.xml
src/ro/ieval/unical/AddEventActivity.java

index 45c47b84142cb651ea640e735cb4b4cd9377a3f5..c1f73add6ca5bbdbe7509d062e191e61fdf238fb 100644 (file)
@@ -22,7 +22,7 @@
             android:layout_width="match_parent"
             android:layout_height="wrap_content"
             android:text="@string/start_label"
-            android:textAppearance="?android:attr/textAppearanceMedium" />
+            android:textAppearance="?android:attr/textAppearanceMedium">    </TextView>
 
     <LinearLayout
             android:layout_width="match_parent"
index d36bbdab6c1512a543c1cb8fc07b573107471343..80f7a04d535fd04a2b634d8cb284f2ae50517216 100644 (file)
@@ -102,6 +102,7 @@ public final class AddEventActivity extends Activity implements OnDateSetListene
                repeatSwitch.setOnCheckedChangeListener(new OnCheckedChangeListener(layout));
 
                final EditText title = (EditText) findViewById(R.id.eventtitle);
+        title.requestFocus();
                title.setText(event.title);
 
                final TextView tstart = (TextView) findViewById(R.id.time_start);
@@ -173,7 +174,7 @@ public final class AddEventActivity extends Activity implements OnDateSetListene
                     Date s=new SimpleDateFormat("yyyy-MM-dd HH:mm").parse(start);
                     Date e=new SimpleDateFormat("yyyy-MM-dd HH:mm").parse(end);
                     event.dtstart=s.getTime();
-                    event.dtend=s.getTime();
+                    event.dtend=e.getTime();
                 } catch (ParseException e) {
                     e.printStackTrace();
                 }
This page took 0.011614 seconds and 4 git commands to generate.