fix SD card detecting
This commit is contained in:
parent
1e1d0f8dc7
commit
f2e13e9cb3
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue