summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Aaron Liu <aaronjli@google.com> 2024-03-14 10:44:13 -0700
committer Aaron Liu <aaronjli@google.com> 2024-04-26 12:04:26 +0000
commit1fa3fa1007e70e9b0bdc1caf0fc5b817dbaa57fa (patch)
tree46d0da2cd388b04da05335ecacb8301bdafc7b9a
parent632c60d9c53aab081a138660820d1e37259a4928 (diff)
Make bouncer background opaque
We keep seeing the bouncer showing over LS content with no scrim showing. We cannot continue to rely on the scrim as there has historically been problems with it being in the right state. The material surface background was removed from the bouncer due to a weird gray after image when unlocking. This seems to have been fixed because the bouncer background and backscrim color are the same color (material surface). CL for reference: https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/24034687 Test: unlock device and observe unlock animation. Test: swipe down for shade transition and then swipe up immediately. Test: observe bouncer background is opaque in web-hv Fixes: 328224320 Fixes: 328548367 Flag: NONE Change-Id: Ie94195fc65add09faaad4e6c3270e9f05a420e08 (cherry picked from commit 6471f0a7255b6ca095fc879cc5894f16383f67d8)
-rw-r--r--packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java
index 05eeac6fc199..70465bc3d0b7 100644
--- a/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java
+++ b/packages/SystemUI/src/com/android/keyguard/KeyguardSecurityContainer.java
@@ -343,6 +343,8 @@ public class KeyguardSecurityContainer extends ConstraintLayout {
setPadding(getPaddingLeft(), getPaddingTop() + getResources().getDimensionPixelSize(
R.dimen.keyguard_security_container_padding_top), getPaddingRight(),
getPaddingBottom());
+ setBackgroundColor(Utils.getColorAttrDefaultColor(getContext(),
+ com.android.internal.R.attr.materialColorSurface));
}
void onResume(SecurityMode securityMode, boolean faceAuthEnabled) {
@@ -800,6 +802,8 @@ public class KeyguardSecurityContainer extends ConstraintLayout {
void reloadColors() {
mViewMode.reloadColors();
+ setBackgroundColor(Utils.getColorAttrDefaultColor(getContext(),
+ com.android.internal.R.attr.materialColorSurface));
}
/** Handles density or font scale changes. */