Merge "Disable Clock View Layer and ignore assigned alpha" into udc-dev
This commit is contained in:
@@ -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