disallow using hardware bitmap on Android 8

This commit is contained in:
tibbi 2017-12-01 18:36:08 +01:00
parent 488f163806
commit b7c0326638

View file

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