diff --git a/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java b/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java index a383cab94c366..ac463ebc1c973 100644 --- a/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java +++ b/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java @@ -31,7 +31,6 @@ import com.android.systemui.R; import com.android.systemui.broadcast.BroadcastDispatcher; import com.android.systemui.dagger.qualifiers.Main; import com.android.systemui.plugins.statusbar.StatusBarStateController; -import com.android.systemui.statusbar.phone.KeyguardBypassController; import com.android.systemui.statusbar.policy.BatteryController; import com.android.systemui.util.ViewController; @@ -49,7 +48,6 @@ public class AnimatableClockController extends ViewController 100; + } + void refreshTime() { mTime.setTimeInMillis(System.currentTimeMillis()); setText(DateFormat.format(mFormat, mTime)); @@ -162,7 +183,7 @@ public class AnimatableClockView extends TextView { } setTextStyle( - mDozingWeight, + getDozingWeight(), -1 /* text size, no update */, mLockScreenColor, false /* animate */, @@ -171,7 +192,7 @@ public class AnimatableClockView extends TextView { null /* onAnimationEnd */); setTextStyle( - mLockScreenWeight, + getLockScreenWeight(), -1 /* text size, no update */, mLockScreenColor, true, /* animate */ @@ -180,35 +201,22 @@ public class AnimatableClockView extends TextView { null /* onAnimationEnd */); } - void animateDisappear() { - if (mTextAnimator == null) { - return; - } - - setTextStyle( - 0 /* weight */, - -1 /* text size, no update */, - null /* color, no update */, - true /* animate */, - KeyguardBypassController.BYPASS_FADE_DURATION /* duration */, - 0 /* delay */, - null /* onAnimationEnd */); - } - void animateCharge(DozeStateGetter dozeStateGetter) { if (mTextAnimator == null || mTextAnimator.isRunning()) { // Skip charge animation if dozing animation is already playing. return; } Runnable startAnimPhase2 = () -> setTextStyle( - dozeStateGetter.isDozing() ? mDozingWeight : mLockScreenWeight/* weight */, + dozeStateGetter.isDozing() ? getDozingWeight() : getLockScreenWeight() /* weight */, -1, null, true /* animate */, CHARGE_ANIM_DURATION_PHASE_1, 0 /* delay */, null /* onAnimationEnd */); - setTextStyle(dozeStateGetter.isDozing() ? mLockScreenWeight : mDozingWeight/* weight */, + setTextStyle(dozeStateGetter.isDozing() + ? getLockScreenWeight() + : getDozingWeight()/* weight */, -1, null, true /* animate */, @@ -218,7 +226,7 @@ public class AnimatableClockView extends TextView { } void animateDoze(boolean isDozing, boolean animate) { - setTextStyle(isDozing ? mDozingWeight : mLockScreenWeight /* weight */, + setTextStyle(isDozing ? getDozingWeight() : getLockScreenWeight() /* weight */, -1, isDozing ? mDozingColor : mLockScreenColor, animate, diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java index 1931c0a1645ca..905495d369a00 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardClockSwitchController.java @@ -167,7 +167,6 @@ public class KeyguardClockSwitchController extends ViewController