OSDN Git Service

Round off new events created from the month view... if the user previously did "Go...
authorMichael Chan <mchan@android.com>
Thu, 1 Oct 2009 07:16:42 +0000 (00:16 -0700)
committerMichael Chan <mchan@android.com>
Thu, 1 Oct 2009 07:16:42 +0000 (00:16 -0700)
Change-Id: I6148797f9d8c36c65828738fb5ad236577556bcd

src/com/android/calendar/MonthActivity.java

index 7bb80c4..62f8602 100644 (file)
@@ -122,6 +122,9 @@ public class MonthActivity extends Activity implements ViewSwitcher.ViewFactory,
     public void goToToday() {
         Time now = new Time();
         now.set(System.currentTimeMillis());
+        now.minute = 0;
+        now.second = 0;
+        now.normalize(false);
 
         TextView title = (TextView) findViewById(R.id.title);
         title.setText(Utils.formatMonthYear(now));