mirror of
https://github.com/immich-app/immich.git
synced 2025-07-09 03:04:16 -04:00
fix(mobile): android always prompts permission when accessing backup page (#11790)
Android always prompt permission
This commit is contained in:
parent
a38dd53afd
commit
7d5f07d1c7
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user