b/5220430 Show the selected date in ab spinner
Change-Id: Ib94efe19e6d89dc4b6c57c88cb397fe35883d363
diff --git a/src/com/android/calendar/AllInOneActivity.java b/src/com/android/calendar/AllInOneActivity.java
index 70def20..9297ce0 100644
--- a/src/com/android/calendar/AllInOneActivity.java
+++ b/src/com/android/calendar/AllInOneActivity.java
@@ -754,6 +754,7 @@
// Update the current view so that the menu can update its look according to the
// current view.
if (!mIsTabletConfig && mActionBarMenuSpinnerAdapter != null) {
+ mActionBarMenuSpinnerAdapter.setTime(timeMillis);
mActionBarMenuSpinnerAdapter.setMainView(viewType);
}
@@ -1021,7 +1022,7 @@
} else if (event.eventType == EventType.UPDATE_TITLE) {
setTitleInActionBar(event);
if (!mIsTabletConfig) {
- mActionBarMenuSpinnerAdapter.setTime(event.startTime.toMillis(false));
+ mActionBarMenuSpinnerAdapter.setTime(mController.getTime());
}
}
updateSecondaryTitleFields(displayTime);