From 89a0ae602061df09ede1e5138bf2e9a7c434260a Mon Sep 17 00:00:00 2001 From: Hawkwood Glazier Date: Wed, 12 Jul 2023 20:10:08 +0000 Subject: Force Software Rendering for KeyguardClockFrame Using hardware rendering disables the ability to intercept alpha and handle it seperately. Enforcing a software layer for the view in question prevents this from happening. Bug: 288233136 Test: Manually tested the new setting Change-Id: I8e1ea0769bdba27e880eea642176fdd2c25bfca4 Merged-In: I8e1ea0769bdba27e880eea642176fdd2c25bfca4 --- packages/SystemUI/src/com/android/keyguard/KeyguardClockFrame.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardClockFrame.kt b/packages/SystemUI/src/com/android/keyguard/KeyguardClockFrame.kt index 635f0fa44234..50e5466d0325 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardClockFrame.kt +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardClockFrame.kt @@ -12,6 +12,10 @@ class KeyguardClockFrame( ) : FrameLayout(context, attrs) { private var drawAlpha: Int = 255 + init { + setLayerType(View.LAYER_TYPE_SOFTWARE, null) + } + protected override fun onSetAlpha(alpha: Int): Boolean { drawAlpha = alpha return true -- cgit v1.2.3-59-g8ed1b