summaryrefslogtreecommitdiff
path: root/core/java/android/widget/SimpleMonthView.java
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2016-04-14 10:15:04 -0400
committerAlan Viverette <alanv@google.com>2016-04-14 10:15:04 -0400
commit08dbbcdc9b4176b4bd91904065c87f0dae29f2d4 (patch)
treed36e3230f8b61413deb0929bad4f0ba5174e1ed4 /core/java/android/widget/SimpleMonthView.java
parent52546e46353f455d6a5bd070da6095868d7fc8bd (diff)
Update day of week labels when setting month params in SimpleMonthView
Bug: 27310206 Change-Id: I40c09fb5dddb202a17ac9c6ecee1d6f40644d9e6
Diffstat (limited to 'core/java/android/widget/SimpleMonthView.java')
-rw-r--r--core/java/android/widget/SimpleMonthView.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/java/android/widget/SimpleMonthView.java b/core/java/android/widget/SimpleMonthView.java
index ee716df58548..1a81d20bf662 100644
--- a/core/java/android/widget/SimpleMonthView.java
+++ b/core/java/android/widget/SimpleMonthView.java
@@ -849,10 +849,12 @@ class SimpleMonthView extends View {
mEnabledDayStart = MathUtils.constrain(enabledDayStart, 1, mDaysInMonth);
mEnabledDayEnd = MathUtils.constrain(enabledDayEnd, mEnabledDayStart, mDaysInMonth);
+ updateMonthYearLabel();
+ updateDayOfWeekLabels();
+
// Invalidate cached accessibility information.
mTouchHelper.invalidateRoot();
-
- updateMonthYearLabel();
+ invalidate();
if (DEBUG_WRONG_DATE) {
Log.d(LOG_TAG, "mMonth = " + mMonth);