Merge "Force Software Rendering for KeyguardClockFrame" into udc-qpr-dev am: 8d9f729ae6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24026630 Change-Id: Ic578ea454347fa896f3d44fd700e31ede38be501 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -12,6 +12,10 @@ class KeyguardClockFrame(
|
|||||||
) : FrameLayout(context, attrs) {
|
) : FrameLayout(context, attrs) {
|
||||||
private var drawAlpha: Int = 255
|
private var drawAlpha: Int = 255
|
||||||
|
|
||||||
|
init {
|
||||||
|
setLayerType(View.LAYER_TYPE_SOFTWARE, null)
|
||||||
|
}
|
||||||
|
|
||||||
protected override fun onSetAlpha(alpha: Int): Boolean {
|
protected override fun onSetAlpha(alpha: Int): Boolean {
|
||||||
drawAlpha = alpha
|
drawAlpha = alpha
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user