Skip to content

Commit 6a7467f

Browse files
authored
removed WRITE_EXTERNAL_STORAGE
1 parent b5699a2 commit 6a7467f

File tree

1 file changed

+2
-2
lines changed
  • core/src/main/java/de/raphaelebner/roomdatabasebackup/core

1 file changed

+2
-2
lines changed

core/src/main/java/de/raphaelebner/roomdatabasebackup/core/RoomBackup.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,7 +371,7 @@ class RoomBackup(var context: Context) : FragmentActivity() {
371371
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
372372
permissionRequestLauncher.launch(arrayOf(READ_MEDIA_IMAGES, READ_MEDIA_AUDIO, READ_MEDIA_VIDEO))
373373
} else {
374-
permissionRequestLauncher.launch(arrayOf(WRITE_EXTERNAL_STORAGE, READ_EXTERNAL_STORAGE))
374+
permissionRequestLauncher.launch(arrayOf(READ_EXTERNAL_STORAGE))
375375
}
376376
return
377377
}
@@ -503,7 +503,7 @@ class RoomBackup(var context: Context) : FragmentActivity() {
503503
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
504504
permissionRequestLauncher.launch(arrayOf(READ_MEDIA_IMAGES, READ_MEDIA_AUDIO, READ_MEDIA_VIDEO))
505505
} else {
506-
permissionRequestLauncher.launch(arrayOf(WRITE_EXTERNAL_STORAGE, READ_EXTERNAL_STORAGE))
506+
permissionRequestLauncher.launch(arrayOf(READ_EXTERNAL_STORAGE))
507507
}
508508
return
509509
}

0 commit comments

Comments
 (0)