Merge "Force Software Rendering for KeyguardClockFrame" into udc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
999f9e4560
@@ -12,6 +12,10 @@ class KeyguardClockFrame(
|
|||||||
) : FrameLayout(context, attrs) {
|
) : FrameLayout(context, attrs) {
|
||||||
private var drawAlpha: Int = 255
|
private var drawAlpha: Int = 255
|
||||||
|
|
||||||
|
init {
|
||||||
|
setLayerType(View.LAYER_TYPE_SOFTWARE, null)
|
||||||
|
}
|
||||||
|
|
||||||
protected override fun onSetAlpha(alpha: Int): Boolean {
|
protected override fun onSetAlpha(alpha: Int): Boolean {
|
||||||
drawAlpha = alpha
|
drawAlpha = alpha
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user