From b7c032663804acf10732a24806733c20dc74721a Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 1 Dec 2017 18:36:08 +0100 Subject: [PATCH] disallow using hardware bitmap on Android 8 --- .../main/kotlin/com/simplemobiletools/draw/views/MyCanvas.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/views/MyCanvas.kt b/app/src/main/kotlin/com/simplemobiletools/draw/views/MyCanvas.kt index acf3ceb..30f52d4 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/views/MyCanvas.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/views/MyCanvas.kt @@ -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 {