Merge "[Bouncer] Reset alpha and translation of view." into tm-qpr-dev am: e7503ef8ef

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

Change-Id: Id8412a686d90242b6491a6f43b988f05cab5c71b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Aaron Liu
2022-10-07 20:52:31 +00:00
committed by Automerger Merge Worker
3 changed files with 5 additions and 2 deletions

View File

@@ -176,6 +176,8 @@ public class KeyguardPINView extends KeyguardPinBasedInputView {
@Override
public void startAppearAnimation() {
setAlpha(1f);
setTranslationY(0);
if (mAppearAnimator.isRunning()) {
mAppearAnimator.cancel();
}

View File

@@ -538,7 +538,7 @@ public class KeyguardSecurityContainer extends FrameLayout {
}
/**
* Runs after a succsssful authentication only
* Runs after a successful authentication only
*/
public void startDisappearAnimation(SecurityMode securitySelection) {
mDisappearAnimRunning = true;
@@ -1063,6 +1063,7 @@ public class KeyguardSecurityContainer extends FrameLayout {
mPopup.dismiss();
mPopup = null;
}
setupUserSwitcher();
}
@Override
@@ -1101,7 +1102,6 @@ public class KeyguardSecurityContainer extends FrameLayout {
return;
}
mView.setAlpha(1f);
mUserSwitcherViewGroup.setAlpha(0f);
ObjectAnimator alphaAnim = ObjectAnimator.ofFloat(mUserSwitcherViewGroup, View.ALPHA,
1f);

View File

@@ -427,6 +427,7 @@ public class KeyguardSecurityContainerController extends ViewController<Keyguard
public void startAppearAnimation() {
if (mCurrentSecurityMode != SecurityMode.None) {
mView.setAlpha(1f);
mView.startAppearAnimation(mCurrentSecurityMode);
getCurrentSecurityController().startAppearAnimation();
}