mirror of
https://github.com/SimpleMobileTools/Simple-Draw.git
synced 2025-02-10 16:50:40 +01:00
use the proper way of preventing hardware decoding of images
This commit is contained in:
parent
b7c0326638
commit
c083976ec9
@ -123,7 +123,8 @@ class MyCanvas(context: Context, attrs: AttributeSet) : View(context, attrs) {
|
|||||||
val size = Point()
|
val size = Point()
|
||||||
activity.windowManager.defaultDisplay.getSize(size)
|
activity.windowManager.defaultDisplay.getSize(size)
|
||||||
val options = RequestOptions()
|
val options = RequestOptions()
|
||||||
.format(DecodeFormat.PREFER_ARGB_8888_DISALLOW_HARDWARE)
|
.format(DecodeFormat.PREFER_ARGB_8888)
|
||||||
|
.disallowHardwareConfig()
|
||||||
.fitCenter()
|
.fitCenter()
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user