pull/2718/head
Horis 2 years ago
parent eb15267aac
commit 4bcaeb45e6
  1. 2
      app/src/main/java/io/legado/app/lib/permission/Permissions.kt

@ -42,7 +42,7 @@ object Permissions {
const val ACCESS_MEDIA_LOCATION = "android.permission.ACCESS_MEDIA_LOCATION" const val ACCESS_MEDIA_LOCATION = "android.permission.ACCESS_MEDIA_LOCATION"
object Group { object Group {
val STORAGE = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) { val STORAGE = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.R) {
arrayOf(MANAGE_EXTERNAL_STORAGE) arrayOf(MANAGE_EXTERNAL_STORAGE)
} else { } else {
arrayOf(READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE) arrayOf(READ_EXTERNAL_STORAGE, WRITE_EXTERNAL_STORAGE)

Loading…
Cancel
Save