diff options
| author | 2022-03-09 19:14:42 +0000 | |
|---|---|---|
| committer | 2022-03-09 19:14:42 +0000 | |
| commit | 181394ddb3949e65deed2929da2885a03acb75da (patch) | |
| tree | 213ec9208ae1940e9da148a3b7f1f9479a6b2cda | |
| parent | e45a811cbd04eb300c2c391f54805ee27cea2d47 (diff) | |
| parent | 272c9bb236ef27c3fbadc9dd65409f81fb86acb0 (diff) | |
Merge "Bouncer: add alpha animation on success." into tm-dev
| -rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java index 1efda7edee2f..77044ed33113 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java @@ -188,14 +188,13 @@ public class KeyguardPINView extends KeyguardPinBasedInputView { enableClipping(false); setTranslationY(0); - AppearAnimationUtils.startTranslationYAnimation(this, 0 /* delay */, 280 /* duration */, - mDisappearYTranslation, mDisappearAnimationUtils.getInterpolator(), - getAnimationListener(InteractionJankMonitor.CUJ_LOCKSCREEN_PIN_DISAPPEAR)); DisappearAnimationUtils disappearAnimationUtils = needsSlowUnlockTransition ? mDisappearAnimationUtilsLocked : mDisappearAnimationUtils; - disappearAnimationUtils.startAnimation2d(mViews, - () -> { + disappearAnimationUtils.createAnimation( + this, 0, 200, mDisappearYTranslation, false, + mDisappearAnimationUtils.getInterpolator(), () -> { + getAnimationListener(InteractionJankMonitor.CUJ_LOCKSCREEN_PIN_DISAPPEAR); enableClipping(true); if (finishRunnable != null) { finishRunnable.run(); |