summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java
diff options
context:
space:
mode:
authorShan Huang <shanh@google.com>2021-06-29 12:12:28 +0800
committerShan Huang <shanh@google.com>2021-06-29 12:15:10 +0800
commitbe2073710854306b10e0fdb611a485d2c23f0500 (patch)
tree4180257fc474c3437d50703a5146e83edfbfe08f /packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java
parentd87df18092cb926d6ca2e605848f70b81778d9ce (diff)
Fix clock font weight animation to always match the latest doze state.
Bug:189296201 Fixes:189296201 Test: Turn off AOD, put screen off, plugin charger, checks the font weight after phone wakes up. Change-Id: I1206efbf213e6fbbfddfc2eb884f66a9321bf993
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java')
-rw-r--r--packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java b/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java
index 08076c17dc3a..4b3af34b1df1 100644
--- a/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java
+++ b/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java
@@ -94,7 +94,9 @@ public class AnimatableClockController extends ViewController<AnimatableClockVie
@Override
public void onBatteryLevelChanged(int level, boolean pluggedIn, boolean charging) {
if (mKeyguardShowing && !mIsCharging && charging) {
- mView.animateCharge(mIsDozing);
+ mView.animateCharge(() -> {
+ return mStatusBarStateController.isDozing();
+ });
}
mIsCharging = charging;
}