Update UriUtil.kt

Removed KitKat sdk check
This commit is contained in:
Dev-ClayP
2025-07-09 11:04:12 -04:00
committed by GitHub
parent 1fc4f150bf
commit a88f6b968a

View File

@@ -67,7 +67,6 @@ object UriUtil {
readOnly: Boolean) {
try {
// try to persist read and write permissions
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
contentResolver?.apply {
var readPermissionAllowed = false
var writePermissionAllowed = false
@@ -118,7 +117,6 @@ object UriUtil {
}
}
}
}
} catch (e: Exception) {
if (release)
Log.e(TAG, "Unable to release persistable URI permission", e)