fix(mobile): android always prompts permission when accessing backup page (#11790)
Android always prompt permission
This commit is contained in:
@@ -36,7 +36,8 @@ class GalleryPermissionNotifier extends StateNotifier<PermissionStatus> {
|
|||||||
|
|
||||||
// Return the joint result of those two permissions
|
// Return the joint result of those two permissions
|
||||||
final PermissionStatus status;
|
final PermissionStatus status;
|
||||||
if (photos.isGranted && videos.isGranted) {
|
if ((photos.isGranted && videos.isGranted) ||
|
||||||
|
(photos.isLimited && videos.isLimited)) {
|
||||||
status = PermissionStatus.granted;
|
status = PermissionStatus.granted;
|
||||||
} else if (photos.isDenied || videos.isDenied) {
|
} else if (photos.isDenied || videos.isDenied) {
|
||||||
status = PermissionStatus.denied;
|
status = PermissionStatus.denied;
|
||||||
@@ -79,7 +80,8 @@ class GalleryPermissionNotifier extends StateNotifier<PermissionStatus> {
|
|||||||
|
|
||||||
// Return the joint result of those two permissions
|
// Return the joint result of those two permissions
|
||||||
final PermissionStatus status;
|
final PermissionStatus status;
|
||||||
if (photos.isGranted && videos.isGranted) {
|
if ((photos.isGranted && videos.isGranted) ||
|
||||||
|
(photos.isLimited && videos.isLimited)) {
|
||||||
status = PermissionStatus.granted;
|
status = PermissionStatus.granted;
|
||||||
} else if (photos.isDenied || videos.isDenied) {
|
} else if (photos.isDenied || videos.isDenied) {
|
||||||
status = PermissionStatus.denied;
|
status = PermissionStatus.denied;
|
||||||
|
|||||||
Reference in New Issue
Block a user