Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 48c2c43f authored by mrulhania's avatar mrulhania
Browse files

Handle READ_MEDIA_IMAGES/VIDEO permission in getPermissionRequestState API

READ_MEDIA_IMAGES permission becomes USER_FIXED, if user allows
only selected photos twice in permission dialog.
USER_FIXED flag is generally treated as permanent denial from user,
and subsequent permission request will be ignored by the system.

But due to photo picker, we treat READ_MEDIA_IMAGES a bit
differently. The system doesn't ignore permission request
even after USER_FIXED flag in this case, rather the
system shows photo picker directly.

Adding this special case to handle READ_MEDIA_IMAGES in new
getPermissionRequestState API, when determining whether a
permission can be requested or not.

Fix: 383956875
Test: atest android.permissionui.cts.PhotoPickerPermissionTest
FLAG: EXEMPT bug fix
Change-Id: I88d86d655fae93edbc5c3011e03a35a73f77a459
parent e60ff67b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment