Skip to content

Commit c083976

Browse files
committed
use the proper way of preventing hardware decoding of images
1 parent b7c0326 commit c083976

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,8 @@ 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_DISALLOW_HARDWARE)
126+
.format(DecodeFormat.PREFER_ARGB_8888)
127+
.disallowHardwareConfig()
127128
.fitCenter()
128129

129130
try {

0 commit comments

Comments
 (0)