π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
document isLocalGalleryMode clearer
laurenspriem11f4c7febdcf
diff --git a/mobile/apps/photos/lib/app_mode.dart b/mobile/apps/photos/lib/app_mode.dartindex b74f496299..22efe10ca8 100644--- a/mobile/apps/photos/lib/app_mode.dart+++ b/mobile/apps/photos/lib/app_mode.dart@@ -1 +1,9 @@+/// Describes which photo library the app is centered around.+///+/// [enteGallery] is the signed-in Ente account experience, focused on photos+/// backed up to Ente.+///+/// [localGallery] is the no-account local-device experience, focused on photos+/// currently available on the device. This mode may still use the network for+/// account setup, updates, model downloads, or other non-account-gallery flows.enum AppMode { enteGallery, localGallery }diff --git a/mobile/apps/photos/lib/service_locator.dart b/mobile/apps/photos/lib/service_locator.dartindex da4f8595ae..06a5835fc3 100644--- a/mobile/apps/photos/lib/service_locator.dart+++ b/mobile/apps/photos/lib/service_locator.dart@@ -91,6 +91,10 @@ LocalSettings get localSettings {return _localSettings!;}+/// Whether the app is currently showing the no-account local gallery experience.+///+/// This does not mean the device is offline. It means the active gallery mode is+/// local-device focused rather than Ente-account focused.bool get isLocalGalleryMode => localSettings.appMode == AppMode.localGallery;bool get hasGrantedMLConsent {