mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-01-12 18:14:17 +01:00
fix SD card detecting
This commit is contained in:
parent
1e1d0f8dc7
commit
f2e13e9cb3
@ -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())
|
||||
|
Loading…
Reference in New Issue
Block a user