Request File Read Permissions
As a user, I need the app to request file read permissions so that I can play the sermons located on my phone.
Acceptance Criteria:
-
GIVEN the application has permission to read files
- WHEN viewing the sermon list screen
-
THEN the listing of sermons on disk are shown
-
- WHEN viewing the sermon list screen
-
GIVEN the application does not have permission to read files
- WHEN the application has not yet asked for permission
- OR the user has denied the permission, but not permanently
-
THEN display a screen with a message -
AND the screen has an image at the top of 240dpx240dp -
AND 24dpbelow the image is a title of size18spreading "File Access Permission" -
AND 8dpbelow the title is a description of default text size reading "Branham Player needs permission to access your files before it can play a sermon" -
AND 48dpbelow the description is a button reading "Grant Access" -
AND the contents are vertically aligned to the center
-
- WHEN the user has permanently denied the permission
-
THEN display a screen with the same layout, button, and image as above -
AND the title reads "File Access Denied" -
AND the description reads "Branham Player was denied access to read your files. Please open up the app settings and grant the Storage permission." -
AND the button reads "Open Settings"
-
- WHEN the user has granted the permission
-
THEN the listing of sermons on disk are shown -
AND the permission request screen is no longer show
-
-
GIVEN the buttons
- WHEN the user presses the “Grant Access” button
-
THEN the system’s file request permission dialog is shown
-
- WHEN the user presses the “Open Settings” button
-
THEN the user is taken to Branham Player app details in the Android Settings app
-
- WHEN the user presses the “Grant Access” button