Merge "Force Software Rendering for KeyguardClockFrame" into udc-dev am: 999f9e4560
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/24044245 Change-Id: I9484f638edba53f26404fad2d2e7ca73755b291d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -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