diff options
author | Michael Chan <mchan@android.com> | 2010-04-06 19:10:37 -0700 |
---|---|---|
committer | Michael Chan <mchan@android.com> | 2010-04-06 19:10:37 -0700 |
commit | c8609a6b5062553f47ae7a864ca95426c2c06dfa (patch) | |
tree | 1b5b087787382cd0a6aaf02eb48dcb2ab04cda77 | |
parent | 0d11d3320ead8f0e8e2145e8a2b68d4f8be24120 (diff) | |
download | Calendar-c8609a6b5062553f47ae7a864ca95426c2c06dfa.tar.gz |
b/2558564 Fixed the problem where going to "today" would cause to a previous time.
This is a workaround for the fact that Listview doesn't me telling it to show a particular item
Change-Id: Ibf78961698cdd8c4290dde9c00d7de16ceb3dffb
-rw-r--r-- | src/com/android/calendar/AgendaActivity.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/com/android/calendar/AgendaActivity.java b/src/com/android/calendar/AgendaActivity.java index c6cb8db0..29475981 100644 --- a/src/com/android/calendar/AgendaActivity.java +++ b/src/com/android/calendar/AgendaActivity.java @@ -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) { |