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

Commit e0e108bf authored by Sherry Zhou's avatar Sherry Zhou Committed by Android (Google) Code Review
Browse files

Merge "Disable Clock View Layer and ignore assigned alpha" into udc-qpr-dev

parents 6552d2f3 58959585
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -12,12 +12,9 @@ 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
        // Ignore alpha passed from View, prefer to compute it from set values
        drawAlpha = (255 * this.alpha * transitionAlpha).toInt()
        return true
    }