From 0e6ba4ffe790a1145fa230c4b795196efcbcff0a Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Fri, 12 May 2023 13:55:16 -0700 Subject: Do not set alpha to 1f when bouncer shows Alpha here was set to 1f everytime the bouncer shows to ensure that the bouncer shows every time. This has caused issues with the introduction of a material U background color for the bouncer. We had bugs where the bouncer alpha was 0, which is why alpha is set to 1f here. Looking at it further, setExpansion is not called in the cases that expansion is already 0f. This is because we were not setting the panel expansion to HIDDEN (1f) anytime we hide the bouncer. Fixes: 281024571 Test: Simpin/Simpuk Test: password, pattern, pin scrimmed and track Test: Testing auth and then power off and on and going back to scrimmed bouncer and tracked bouncer. Change-Id: I572280daef98da64045e12508a6efd60141a42b6 --- .../SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java | 1 - .../src/com/android/keyguard/KeyguardSecurityContainerController.java | 3 +-- .../systemui/keyguard/domain/interactor/PrimaryBouncerInteractor.kt | 2 ++ 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'packages/SystemUI/src/com/android') diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java index 5cc0547b5bde..4b021716f506 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java @@ -599,7 +599,6 @@ public class KeyguardSecurityContainer extends ConstraintLayout { */ public void startAppearAnimation(SecurityMode securityMode) { setTranslationY(0f); - setAlpha(1f); updateChildren(0 /* translationY */, 1f /* alpha */); mViewMode.startAppearAnimation(securityMode); } diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java index 1cbcb9d56566..d35fe262f4df 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainerController.java @@ -674,7 +674,6 @@ public class KeyguardSecurityContainerController extends ViewController controller.startAppearAnimation()); } @@ -1112,7 +1111,7 @@ public class KeyguardSecurityContainerController extends ViewController