diff options
| author | Elliott Hughes <enh@google.com> | 2014-10-23 18:21:56 +0000 |
|---|---|---|
| committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2014-10-23 18:21:56 +0000 |
| commit | ced7ebdb1d522b4206e2048b278554ca841aeaba (patch) | |
| tree | cf0b3f156304178e4204109bfec64d255d3d3ae9 /core/java/android/widget | |
| parent | 2bf3800b10e1cc9a291527fc83efc986ba83aa37 (diff) | |
| parent | f7d5e0a53e168f2acc17b098bdd4b927fa1b1d6c (diff) | |
Merge "Migrate off timeFormat12 and timeFormat24."
Diffstat (limited to 'core/java/android/widget')
| -rw-r--r-- | core/java/android/widget/TextClock.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/java/android/widget/TextClock.java b/core/java/android/widget/TextClock.java index b3b95d917a82..0a20eed03dc9 100644 --- a/core/java/android/widget/TextClock.java +++ b/core/java/android/widget/TextClock.java @@ -222,10 +222,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; } } @@ -429,9 +429,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; |
