OSDN Git Service

b/2558564 Fixed the problem where going to "today" would cause to a previous time.
[android-x86/packages-apps-Calendar.git] / src / com / android / calendar / AgendaActivity.java
index c6cb8db..2947598 100644 (file)
@@ -28,7 +28,6 @@ import android.content.SharedPreferences;
 import android.database.ContentObserver;
 import android.os.Bundle;
 import android.os.Handler;
-import android.preference.PreferenceManager;
 import android.provider.Calendar.Events;
 import android.text.format.Time;
 import android.util.Log;
@@ -215,8 +214,8 @@ public class AgendaActivity extends Activity implements Navigator {
     /* Navigator interface methods */
     public void goToToday() {
         Time now = new Time();
-        now.set(System.currentTimeMillis());
-        goTo(now, true);
+        now.setToNow();
+        mAgendaListView.goTo(now, true); // Force refresh
     }
 
     public void goTo(Time time, boolean animate) {