Skip to content

Commit b7c0326

Browse files
committed
disallow using hardware bitmap on Android 8
1 parent 488f163 commit b7c0326

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • app/src/main/kotlin/com/simplemobiletools/draw/views

app/src/main/kotlin/com/simplemobiletools/draw/views/MyCanvas.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ class MyCanvas(context: Context, attrs: AttributeSet) : View(context, attrs) {
123123
val size = Point()
124124
activity.windowManager.defaultDisplay.getSize(size)
125125
val options = RequestOptions()
126-
.format(DecodeFormat.PREFER_ARGB_8888)
126+
.format(DecodeFormat.PREFER_ARGB_8888_DISALLOW_HARDWARE)
127127
.fitCenter()
128128

129129
try {

0 commit comments

Comments
 (0)