diff options
| author | Suprabh Shukla <suprabh@google.com> | 2020-03-10 17:09:25 -0700 |
|---|---|---|
| committer | Suprabh Shukla <suprabh@google.com> | 2020-03-10 18:05:02 -0700 |
| commit | 2e7408eddb64b1fe51bd95dc8399d992c5411b6b (patch) | |
| tree | ccbdb738cc7ad70641c59c2212242c812003528d /core/java/android/widget/TextClock.java | |
| parent | 6111751922bfb9e02b3aaf17b4a7a20a21e0f09f (diff) | |
Making time-zone an API constant
This is already effectively an API the way it is documented.
Updating all the references of the hard-coded constant.
Test: make update-api && make
Bug: 151112929
Change-Id: Iadeb03c516215cfc51bc8604b67250348d5a4375
Diffstat (limited to 'core/java/android/widget/TextClock.java')
| -rw-r--r-- | core/java/android/widget/TextClock.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/TextClock.java b/core/java/android/widget/TextClock.java index 85654931a975..6432438b6630 100644 --- a/core/java/android/widget/TextClock.java +++ b/core/java/android/widget/TextClock.java @@ -173,7 +173,7 @@ public class TextClock extends TextView { return; // Test disabled the clock ticks } if (mTimeZone == null && Intent.ACTION_TIMEZONE_CHANGED.equals(intent.getAction())) { - final String timeZone = intent.getStringExtra("time-zone"); + final String timeZone = intent.getStringExtra(Intent.EXTRA_TIMEZONE); createTime(timeZone); } else if (!mShouldRunTicker && (Intent.ACTION_TIME_TICK.equals(intent.getAction()) || Intent.ACTION_TIME_CHANGED.equals(intent.getAction()))) { |
