diff options
author | Beverly <beverlyt@google.com> | 2020-12-01 09:00:57 -0500 |
---|---|---|
committer | Beverly Tai <beverlyt@google.com> | 2020-12-03 14:09:35 +0000 |
commit | e1b6d7f819a892b650f61db5ad5c0621e2b80f06 (patch) | |
tree | c8a843352588d4c92255f3a802b0642af7b254b4 /packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java | |
parent | 648d4e5e005f2a1422d5e8f8cf7bd4d9c93639e0 (diff) |
Update AOD/LS clock
- Update clock sizes (large clock = 200dp, small clock = 100dp)
- Update clock weights (large = 100-400, small = 200-300)
- Update clocks on time zone and time format changes
(Settings > System > Date & Time)
Test: manual, atest SystemUITests
Bug: 170228350
Change-Id: I446a2625fdd776c15e744f1601b3ea0e2a873cf1
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java b/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java index 3157a5a8fc5b..7c6a27446c78 100644 --- a/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java +++ b/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java @@ -24,6 +24,8 @@ import com.android.settingslib.Utils; import com.android.systemui.plugins.statusbar.StatusBarStateController; import com.android.systemui.util.ViewController; +import java.util.TimeZone; + /** * Controls the color of a GradientTextClock. */ @@ -62,12 +64,26 @@ public class AnimatableClockController extends ViewController<AnimatableClockVie } /** - * Updates the time for this view. + * Updates the time for the view. */ public void refreshTime() { mView.refreshTime(); } + /** + * Updates the timezone for the view. + */ + public void onTimeZoneChanged(TimeZone timeZone) { + mView.onTimeZoneChanged(timeZone); + } + + /** + * Trigger a time format update + */ + public void refreshFormat() { + mView.refreshFormat(); + } + private void initColors() { mLockScreenColors[0] = Utils.getColorAttrDefaultColor(getContext(), com.android.systemui.R.attr.wallpaperTextColor); |