From f2e13e9cb3ce0f6b41abddad9b207c58ef99516c Mon Sep 17 00:00:00 2001 From: tibbi Date: Mon, 7 Nov 2016 23:59:08 +0100 Subject: [PATCH] fix SD card detecting --- app/src/main/java/com/simplemobiletools/gallery/Utils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())