summaryrefslogtreecommitdiffstats
path: root/core/java/android
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
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')
-rwxr-xr-xcore/java/android/text/format/DateFormat.java2
-rw-r--r--core/java/android/widget/TextClock.java8
2 files changed, 5 insertions, 5 deletions
diff --git a/core/java/android/text/format/DateFormat.java b/core/java/android/text/format/DateFormat.java
index 9fec9a1..d48f551 100755
--- a/core/java/android/text/format/DateFormat.java
+++ b/core/java/android/text/format/DateFormat.java
@@ -216,7 +216,7 @@ public class DateFormat {
*/
public static String getTimeFormatString(Context context) {
LocaleData d = LocaleData.get(context.getResources().getConfiguration().locale);
- return is24HourFormat(context) ? d.timeFormat24 : d.timeFormat12;
+ return is24HourFormat(context) ? d.timeFormat_Hm : d.timeFormat_hm;
}
/**
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;