Skip to content

Commit

Permalink
Fixed the external storage requester for android api version above 28
Browse files Browse the repository at this point in the history
  • Loading branch information
SergKhram committed Feb 27, 2021
1 parent 9f678c0 commit 28b285d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -20,7 +20,7 @@ internal fun isDeviceTest(): Boolean =
System.getProperty("java.runtime.name")?.toLowerCase()?.contains("android") ?: false

internal fun requestExternalStoragePermissions() {
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M) return
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.M || Build.VERSION.SDK_INT > Build.VERSION_CODES.P ) return

with(PermissionRequester()) {
addPermissions("android.permission.WRITE_EXTERNAL_STORAGE")
Expand Down

0 comments on commit 28b285d

Please sign in to comment.