Skip to content

Commit e5ae019

Browse files
author
Jim Miller
committed
Fix 5581164: Use abbreviated day in lockscreen
This fixes a problem where the alarm status was forced to scroll on phones when the date string got too long. We now abbreviate the day on lock screen. Change-Id: I99990f1568282c65fb6ed4e78d20bb31b3487a8e
1 parent 258576a commit e5ae019

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

core/res/res/values/donottranslate-cldr.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,5 +145,6 @@
145145
<string name="same_year_wday1_mdy1_wday2_mdy2">%1$s, %2$s %3$s – %6$s, %7$s %8$s, %9$s</string>
146146
<string name="short_format_month">%b</string>
147147
<string name="full_wday_month_day_no_year">EEEE, MMMM d</string>
148+
<string name="abbrev_wday_month_day_no_year">EEE, MMMM d</string>
148149
<string name="abbrev_wday_month_day_year">EEE, MMM d, yyyy</string>
149150
</resources>

policy/src/com/android/internal/policy/impl/KeyguardStatusViewManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public KeyguardStatusViewManager(View view, KeyguardUpdateMonitor updateMonitor,
168168
boolean emergencyButtonEnabledInScreen) {
169169
if (DEBUG) Log.v(TAG, "KeyguardStatusViewManager()");
170170
mContainer = view;
171-
mDateFormatString = getContext().getString(R.string.full_wday_month_day_no_year);
171+
mDateFormatString = getContext().getString(R.string.abbrev_wday_month_day_no_year);
172172
mLockPatternUtils = lockPatternUtils;
173173
mUpdateMonitor = updateMonitor;
174174
mCallback = callback;

0 commit comments

Comments
 (0)