From f537c9b5f15cb5d5ad8197c61beb471ecdc5f1fb Mon Sep 17 00:00:00 2001 From: Ki-Hwan Lee Date: Thu, 21 Mar 2013 13:45:56 +0900 Subject: [PATCH] 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 --- core/java/android/widget/CalendarView.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/widget/CalendarView.java b/core/java/android/widget/CalendarView.java index 361eca4d33992..a19c6a813fe2d 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.