diff options
author | Beverly <beverlyt@google.com> | 2021-07-09 13:22:20 -0400 |
---|---|---|
committer | Beverly <beverlyt@google.com> | 2021-07-09 13:26:26 -0400 |
commit | b90494d2a15bc89ba558c25e6145b3a46d950761 (patch) | |
tree | afa3de46363dd2b16d7f7da94fae8d95da3cbbb8 /packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java | |
parent | 1d2cbb6f50fe3eb2b4281834af4e4bfe8f4097c3 (diff) |
Don't animate weight to 0 on face unlock bypass
The transition happens so fast, you can barely see the weight
animation, so let's not animate it.
Test: manual
Fixes: 192352151
Change-Id: Ie7430d6ab3ab0675826005125f87db03886ddc48
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java b/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java index fcf4e4703ed3..c89cda98c8a5 100644 --- a/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java +++ b/packages/SystemUI/src/com/android/keyguard/AnimatableClockController.java @@ -21,7 +21,6 @@ import android.content.Context; import android.content.Intent; import android.content.IntentFilter; import android.graphics.Color; -import android.hardware.biometrics.BiometricSourceType; import android.icu.text.NumberFormat; import com.android.settingslib.Utils; @@ -94,9 +93,7 @@ public class AnimatableClockController extends ViewController<AnimatableClockVie @Override public void onBatteryLevelChanged(int level, boolean pluggedIn, boolean charging) { if (mKeyguardShowing && !mIsCharging && charging) { - mView.animateCharge(() -> { - return mStatusBarStateController.isDozing(); - }); + mView.animateCharge(mStatusBarStateController::isDozing); } mIsCharging = charging; } @@ -127,21 +124,10 @@ public class AnimatableClockController extends ViewController<AnimatableClockVie private final KeyguardUpdateMonitorCallback mKeyguardUpdateMonitorCallback = new KeyguardUpdateMonitorCallback() { @Override - public void onBiometricAuthenticated(int userId, BiometricSourceType biometricSourceType, - boolean isStrongBiometric) { - // Strong auth will force the bouncer regardless of a successful face auth - if (biometricSourceType == BiometricSourceType.FACE - && mBypassController.canBypass() - && !mKeyguardUpdateMonitor.userNeedsStrongAuth()) { - mView.animateDisappear(); - } - } - - @Override public void onKeyguardVisibilityChanged(boolean showing) { mKeyguardShowing = showing; if (!mKeyguardShowing) { - // reset state (ie: after animateDisappear) + // reset state (ie: after weight animations) reset(); } } @@ -156,7 +142,6 @@ public class AnimatableClockController extends ViewController<AnimatableClockVie mDozeAmount = mStatusBarStateController.getDozeAmount(); mBatteryController.addCallback(mBatteryCallback); mKeyguardUpdateMonitor.registerCallback(mKeyguardUpdateMonitorCallback); - mKeyguardShowing = true; mStatusBarStateController.removeCallback(mStatusBarStatePersistentListener); mStatusBarStateController.addCallback(mStatusBarStatePersistentListener); |