From 6916ac1217d5144ed5107ccc2690cd8887671279 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Tue, 27 Sep 2022 12:43:18 -0700 Subject: [PATCH] [Bouncer] Reset alpha and translation of view. Reset alpha and translation of pin view in modern arch. The alpha and translation is affected in the disappear animation. We want to reset it. Bug: 249336718 Test: Manual on device Change-Id: Id506792fc263c07e9b0fc99dd515fe47daedf5af --- .../SystemUI/src/com/android/keyguard/KeyguardPINView.java | 2 ++ .../src/com/android/keyguard/KeyguardSecurityContainer.java | 4 ++-- .../android/keyguard/KeyguardSecurityContainerController.java | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java index 453072bc42da3..5d86ccd5409ed 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java @@ -176,6 +176,8 @@ public class KeyguardPINView extends KeyguardPinBasedInputView { @Override public void startAppearAnimation() { + setAlpha(1f); + setTranslationY(0); if (mAppearAnimator.isRunning()) { mAppearAnimator.cancel(); } diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java index 2bdb1b894c4a0..13362ab0637e9 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java @@ -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 @@ -1096,7 +1097,6 @@ public class KeyguardSecurityContainer extends FrameLayout { return; } - mView.setAlpha(1f); mUserSwitcherViewGroup.setAlpha(0f); ObjectAnimator alphaAnim = ObjectAnimator.ofFloat(mUserSwitcherViewGroup, View.ALPHA, 1f); diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java index 57058b76ce8f6..d448f40ed5290 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java @@ -427,6 +427,7 @@ public class KeyguardSecurityContainerController extends ViewController