diff options
| author | Elliott Hughes <enh@google.com> | 2014-10-23 11:06:43 -0700 |
|---|---|---|
| committer | Elliott Hughes <enh@google.com> | 2014-10-23 11:18:21 -0700 |
| commit | f7d5e0a53e168f2acc17b098bdd4b927fa1b1d6c (patch) | |
| tree | a0c53d014dfc466d17e20ad33a9bceffd802369d /core/java/android/widget | |
| parent | 0451728645d559d904f579894d4b59e971e2369e (diff) | |
| download | frameworks_base-f7d5e0a53e168f2acc17b098bdd4b927fa1b1d6c.zip frameworks_base-f7d5e0a53e168f2acc17b098bdd4b927fa1b1d6c.tar.gz frameworks_base-f7d5e0a53e168f2acc17b098bdd4b927fa1b1d6c.tar.bz2 | |
Migrate off timeFormat12 and timeFormat24.
libcore now offers a wider variety of 12-/24-hour time formats,
so be more specific about which one we want here.
(cherry-pick of 85f60d3a03b5b5d9a0e8b8a138eb85a6b53a1eca.)
Bug: 10361358
Change-Id: I846ab7a6f84cd49e876ad21e9366aff1600e0530
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 b3b95d9..0a20eed 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; |
