Merge "Merge "Disable Clock View Layer and ignore assigned alpha" into udc-dev am: f31d364775 am: ff41e81934" into main
This commit is contained in:
committed by
Android (Google) Code Review
commit
a9a2f98f42
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user