use READ_EXTERNAL_STORAGE perm since only reading is needed

READ_EXTERNAL_STORAGE was added in SDK 16, this code predates that, so it
still used WRITE_EXTERNAL_STORAGE.  The minSdkVersion is 23 now, so the
correct permission is preferred.  This code does not do any writing, only
reading.

#1440
This commit is contained in:
Hans-Christoph Steiner
2023-06-12 10:20:02 +02:00
committed by Torsten Grote
parent 22635cd525
commit 703a1c10a7
2 changed files with 6 additions and 11 deletions

View File

@@ -152,8 +152,8 @@ public class MainActivityEspressoTest {
Manifest.permission.ACCESS_COARSE_LOCATION);
@Rule
public GrantPermissionRule writeExternalStoragePermissionRule = GrantPermissionRule.grant(
Manifest.permission.WRITE_EXTERNAL_STORAGE);
public GrantPermissionRule readExternalStoragePermissionRule = GrantPermissionRule.grant(
Manifest.permission.READ_EXTERNAL_STORAGE);
@Test
public void bottomNavFlavorCheck() {