remove a condition from stupid write permission checking

This commit is contained in:
tibbi 2017-03-01 23:28:03 +01:00
parent e4d5ef4a37
commit 760ff4a8f3

View file

@ -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 {