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
Loading
Please register or sign in to comment