diff --git a/app/src/main/java/com/simplemobiletools/gallery/Utils.kt b/app/src/main/java/com/simplemobiletools/gallery/Utils.kt index 1ae51225d..d50651e42 100644 --- a/app/src/main/java/com/simplemobiletools/gallery/Utils.kt +++ b/app/src/main/java/com/simplemobiletools/gallery/Utils.kt @@ -140,7 +140,7 @@ class Utils { } } - fun needsStupidWritePermissions(context: Context, path: String) = isPathOnSD(context, path) && isKitkat() + fun needsStupidWritePermissions(context: Context, path: String) = isPathOnSD(context, path) && isKitkat() && !context.getSDCardPath().isEmpty() fun isPathOnSD(context: Context, path: String): Boolean { return path.startsWith(context.getSDCardPath())