Merge "Bouncer: add alpha animation on success." into tm-dev am: 181394ddb3

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17125030

Change-Id: I1287e97a475dc687df76232a1ef3e56db8adaefd
This commit is contained in:
Aaron Liu
2022-03-09 19:19:57 +00:00
committed by Automerger Merge Worker

View File

@@ -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();