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

This commit is contained in:
Neha Jain
2023-07-19 02:12:15 +00:00
committed by Android (Google) Code Review

View File

@@ -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
}