mirror of
https://github.com/SimpleMobileTools/Simple-Draw.git
synced 2025-02-03 10:17:29 +01:00
disallow using hardware bitmap on Android 8
This commit is contained in:
parent
488f163806
commit
b7c0326638
@ -123,7 +123,7 @@ class MyCanvas(context: Context, attrs: AttributeSet) : View(context, attrs) {
|
||||
val size = Point()
|
||||
activity.windowManager.defaultDisplay.getSize(size)
|
||||
val options = RequestOptions()
|
||||
.format(DecodeFormat.PREFER_ARGB_8888)
|
||||
.format(DecodeFormat.PREFER_ARGB_8888_DISALLOW_HARDWARE)
|
||||
.fitCenter()
|
||||
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user