summaryrefslogtreecommitdiffstats
path: root/packages/SystemUI/src/com/android
diff options
context:
space:
mode:
authorChris Wren <cwren@android.com>2012-10-11 14:39:38 -0400
committerChris Wren <cwren@android.com>2012-10-11 16:37:49 -0400
commit5fb18aa57541710597ccef39423b255017e2915e (patch)
tree1521d365570b446deb9188da28f9d6bf505a99a5 /packages/SystemUI/src/com/android
parente1f4ebf559f7ddbfe19ea9a1823a62f3d8b80d71 (diff)
downloadframeworks_base-5fb18aa57541710597ccef39423b255017e2915e.zip
frameworks_base-5fb18aa57541710597ccef39423b255017e2915e.tar.gz
frameworks_base-5fb18aa57541710597ccef39423b255017e2915e.tar.bz2
Copy date format style from keyguard.
Bug: 7312660 Change-Id: Ia5e728758bd1f2caa039ea6b8f8fa9abcc9f8417
Diffstat (limited to 'packages/SystemUI/src/com/android')
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/policy/DateView.java7
1 files changed, 2 insertions, 5 deletions
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 640dcca..1d6b3d1 100644
--- a/packages/SystemUI/src/com/android/systemui/statusbar/policy/DateView.java
+++ b/packages/SystemUI/src/com/android/systemui/statusbar/policy/DateView.java
@@ -87,11 +87,8 @@ public class DateView extends TextView {
}
protected void updateClock() {
- final Context context = getContext();
- Date now = new Date();
- CharSequence dow = DateFormat.format("EEEE", now);
- CharSequence date = DateFormat.getLongDateFormat(context).format(now);
- setText(context.getString(R.string.status_bar_date_formatter, dow, date));
+ final String dateFormat = getContext().getString(R.string.abbrev_wday_month_day_no_year);
+ setText(DateFormat.format(dateFormat, new Date()));
}
private boolean isVisible() {