use the proper way of preventing hardware decoding of images

This commit is contained in:
tibbi 2017-12-01 18:57:24 +01:00
parent b7c0326638
commit c083976ec9

View File

@ -123,7 +123,8 @@ 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_DISALLOW_HARDWARE)
.format(DecodeFormat.PREFER_ARGB_8888)
.disallowHardwareConfig()
.fitCenter()
try {