Refactor(minSdk): Upgrade minSdk from 21 to 24
This commit is contained in:
@@ -30,7 +30,7 @@ class NativeWebApi(
|
||||
return clipboardManager?.let {
|
||||
it.setPrimaryClip(ClipData.newPlainText("copy", text))
|
||||
true
|
||||
} ?: false
|
||||
} == true
|
||||
}
|
||||
|
||||
@JavascriptInterface
|
||||
@@ -95,7 +95,7 @@ class NativeWebApi(
|
||||
}
|
||||
true
|
||||
} catch (e: IOException) {
|
||||
Timber.e("Could not save file $fileName to ${file.absolutePath}", e)
|
||||
Timber.e(e, "Could not save file $fileName to ${file.absolutePath}")
|
||||
false
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ object Permissions {
|
||||
context: Context,
|
||||
permissionLauncher: ManagedActivityResultLauncher<String, Boolean>
|
||||
): Boolean {
|
||||
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M || Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user