diff --git a/app/src/main/kotlin/com/simplemobiletools/draw/activities/MainActivity.kt b/app/src/main/kotlin/com/simplemobiletools/draw/activities/MainActivity.kt index d6339a8..bbf9ae6 100644 --- a/app/src/main/kotlin/com/simplemobiletools/draw/activities/MainActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/draw/activities/MainActivity.kt @@ -259,8 +259,10 @@ class MainActivity : SimpleActivity(), CanvasListener { val outputStream = contentResolver.openOutputStream(intentUri) saveToOutputStream(outputStream, file.getCompressionFormat()) } else { - getFileOutputStream(file) { - saveToOutputStream(it, file.getCompressionFormat()) + handlePermission(PERMISSION_WRITE_STORAGE) { + getFileOutputStream(file) { + saveToOutputStream(it, file.getCompressionFormat()) + } } } }