remove a condition from stupid write permission checking
This commit is contained in:
parent
e4d5ef4a37
commit
760ff4a8f3
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ fun Context.isKitkatPlus() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT
|
|||
fun Context.isLollipopPlus() = Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP
|
||||
|
||||
@SuppressLint("NewApi")
|
||||
fun Context.needsStupidWritePermissions(path: String) = isPathOnSD(path) && isLollipopPlus() && sdCardPath.isNotEmpty()
|
||||
fun Context.needsStupidWritePermissions(path: String) = isPathOnSD(path) && isLollipopPlus()
|
||||
|
||||
@SuppressLint("NewApi")
|
||||
fun Context.isAStorageRootFolder(path: String): Boolean {
|
||||
|
|
Loading…
Reference in a new issue