summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorKi-Hwan Lee <kiban18@gmail.com>2013-03-21 13:45:56 +0900
committerKi-Hwan Lee <kiban18@gmail.com>2013-03-21 13:45:56 +0900
commitf537c9b5f15cb5d5ad8197c61beb471ecdc5f1fb (patch)
tree7be2b8c11774fa03c5bd759e550664d3e4f323c3 /core
parente79af7dffbd4c41ab756c5b0888e28bbb317aab3 (diff)
downloadframeworks_base-f537c9b5f15cb5d5ad8197c61beb471ecdc5f1fb.zip
frameworks_base-f537c9b5f15cb5d5ad8197c61beb471ecdc5f1fb.tar.gz
frameworks_base-f537c9b5f15cb5d5ad8197c61beb471ecdc5f1fb.tar.bz2
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
Diffstat (limited to 'core')
-rw-r--r--core/java/android/widget/CalendarView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/CalendarView.java b/core/java/android/widget/CalendarView.java
index 361eca4..a19c6a8 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.