High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
fix(mobile): android always prompts permission when accessing backup page (#11790)
Alex7d5f07d1c760
diff --git a/mobile/lib/providers/gallery_permission.provider.dart b/mobile/lib/providers/gallery_permission.provider.dartindex 7554a6a6bf..8077ca99fe 100644--- a/mobile/lib/providers/gallery_permission.provider.dart+++ b/mobile/lib/providers/gallery_permission.provider.dart@@ -36,7 +36,8 @@ class GalleryPermissionNotifier extends StateNotifier<PermissionStatus> {// Return the joint result of those two permissionsfinal PermissionStatus status;- if (photos.isGranted && videos.isGranted) {+ if ((photos.isGranted && videos.isGranted) ||+ (photos.isLimited && videos.isLimited)) {status = PermissionStatus.granted;} else if (photos.isDenied || videos.isDenied) {status = PermissionStatus.denied;@@ -79,7 +80,8 @@ class GalleryPermissionNotifier extends StateNotifier<PermissionStatus> {// Return the joint result of those two permissionsfinal PermissionStatus status;- if (photos.isGranted && videos.isGranted) {+ if ((photos.isGranted && videos.isGranted) ||+ (photos.isLimited && videos.isLimited)) {status = PermissionStatus.granted;} else if (photos.isDenied || videos.isDenied) {status = PermissionStatus.denied;