summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget/TextClock.java
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2014-10-29 17:13:38 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-29 17:13:38 +0000
commit64a1a901dcd9b3103cc63d5c20de9af6db9d1ada (patch)
tree7142728c6fd3640438c1aabd076ab83ff85a6f59 /core/java/android/widget/TextClock.java
parent177f91d1ede0cef9fc6c7c29f163b78467c49f8c (diff)
parent87ce99ca7243e4556a6cfe9f42cc51531301e979 (diff)
downloadframeworks_base-64a1a901dcd9b3103cc63d5c20de9af6db9d1ada.zip
frameworks_base-64a1a901dcd9b3103cc63d5c20de9af6db9d1ada.tar.gz
frameworks_base-64a1a901dcd9b3103cc63d5c20de9af6db9d1ada.tar.bz2
am 87ce99ca: am ced7ebdb: Merge "Migrate off timeFormat12 and timeFormat24."
* commit '87ce99ca7243e4556a6cfe9f42cc51531301e979': Migrate off timeFormat12 and timeFormat24.
Diffstat (limited to 'core/java/android/widget/TextClock.java')
-rw-r--r--core/java/android/widget/TextClock.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/core/java/android/widget/TextClock.java b/core/java/android/widget/TextClock.java
index 4c5c71d..1a86809 100644
--- a/core/java/android/widget/TextClock.java
+++ b/core/java/android/widget/TextClock.java
@@ -226,10 +226,10 @@ public class TextClock extends TextView {
if (mFormat12 == null || mFormat24 == null) {
LocaleData ld = LocaleData.get(getContext().getResources().getConfiguration().locale);
if (mFormat12 == null) {
- mFormat12 = ld.timeFormat12;
+ mFormat12 = ld.timeFormat_hm;
}
if (mFormat24 == null) {
- mFormat24 = ld.timeFormat24;
+ mFormat24 = ld.timeFormat_Hm;
}
}
@@ -433,9 +433,9 @@ public class TextClock extends TextView {
LocaleData ld = LocaleData.get(getContext().getResources().getConfiguration().locale);
if (format24Requested) {
- mFormat = abc(mFormat24, mFormat12, ld.timeFormat24);
+ mFormat = abc(mFormat24, mFormat12, ld.timeFormat_Hm);
} else {
- mFormat = abc(mFormat12, mFormat24, ld.timeFormat12);
+ mFormat = abc(mFormat12, mFormat24, ld.timeFormat_hm);
}
boolean hadSeconds = mHasSeconds;