Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9044de5 authored by Hawkwood Glazier's avatar Hawkwood Glazier
Browse files

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
parent d2b57db8
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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