diff options
| author | 2011-08-25 15:12:20 -0700 | |
|---|---|---|
| committer | 2011-08-25 15:12:20 -0700 | |
| commit | a3dba34dd211f8fff0a75bda1cc5f4fb0c723ac8 (patch) | |
| tree | 9e95d313bc5e51de6f6b4fbd4a3b06162124dbe7 | |
| parent | 12bde60b39affbfdcb7ef6317e0a5f99c3f41b10 (diff) | |
Windowshade visual cleanups.
Bug: 5175050
Change-Id: Ia6ac4f6692823a17eb4f0ce0c4b9e1eb3fd16fcf
| -rw-r--r-- | packages/SystemUI/res/values/donottranslate.xml | 7 | ||||
| -rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/policy/DateView.java | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/packages/SystemUI/res/values/donottranslate.xml b/packages/SystemUI/res/values/donottranslate.xml index c25a5b7e2ff3..93ec481258f5 100644 --- a/packages/SystemUI/res/values/donottranslate.xml +++ b/packages/SystemUI/res/values/donottranslate.xml @@ -17,8 +17,9 @@ */ --> <resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> - <!-- For formatting day of week and date in DateView. Day of week precedes date by default, - but this may be overridden on a per-locale basis if necessary. --> - <string name="status_bar_date_formatter">%1$s\n%2$s</string> + <!-- For formatting day of week and date in DateView. %1$s is DOW, %2$s is date. + In Roman locales we now show only the date, but DOW is available for other locales if + necessary. --> + <string name="status_bar_date_formatter">%2$s</string> </resources> diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/policy/DateView.java b/packages/SystemUI/src/com/android/systemui/statusbar/policy/DateView.java index a171514256d8..d3f95250158c 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/DateView.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/DateView.java @@ -91,7 +91,7 @@ public final class DateView extends TextView { final Context context = getContext(); Date now = new Date(); CharSequence dow = DateFormat.format("EEEE", now); - CharSequence date = DateFormat.getMediumDateFormat(getContext()).format(now); + CharSequence date = DateFormat.getLongDateFormat(context).format(now); setText(context.getString(R.string.status_bar_date_formatter, dow, date)); } |