diff options
| author | 2013-03-21 13:45:56 +0900 | |
|---|---|---|
| committer | 2013-03-21 13:45:56 +0900 | |
| commit | f537c9b5f15cb5d5ad8197c61beb471ecdc5f1fb (patch) | |
| tree | 7be2b8c11774fa03c5bd759e550664d3e4f323c3 | |
| parent | e79af7dffbd4c41ab756c5b0888e28bbb317aab3 (diff) | |
Fix CalendarView to show the month title properly.
Step to reproduce:
Do this test on a Tablet (i.e. do in multi-pane layout)
1. Settings > Date & time > Uncheck the Automatic date & time checkbox.
2. Select 'Set date' and set the month to January and Done.
3. Re-select 'Set date' then you will find no month title just above the calendar.
Change-Id: I2489b454a4526be13f1fbdc61a72edcd6b6942a0
| -rw-r--r-- | core/java/android/widget/CalendarView.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/CalendarView.java b/core/java/android/widget/CalendarView.java index 361eca4d3399..a19c6a813fe2 100644 --- a/core/java/android/widget/CalendarView.java +++ b/core/java/android/widget/CalendarView.java @@ -247,7 +247,7 @@ public class CalendarView extends FrameLayout { /** * Which month should be displayed/highlighted [0-11]. */ - private int mCurrentMonthDisplayed; + private int mCurrentMonthDisplayed = -1; /** * Used for tracking during a scroll. |