Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Merge remote-tracking branch 'origin/main' into feat/ocr_enhance

Amrithesh Kakkoth Ente3434cd029afd
diff --cc mobile/apps/photos/lib/states/detail_page_state.dart
index dc0de7465b,9ebed3571a..793e081a8b
--- a/mobile/apps/photos/lib/states/detail_page_state.dart
+++ b/mobile/apps/photos/lib/states/detail_page_state.dart
@@@ -15,13 -29,9 +29,13 @@@ class InheritedDetailPageState extends
final ValueNotifier<bool> enableFullScreenNotifier;
final ValueNotifier<bool> isInSharedCollectionNotifier;
- /// Holds the generatedID of the file currently showing thumbnail fallback.
- /// Only the file with matching ID should display the fallback indicator.
- final ValueNotifier<int?> showingThumbnailFallbackNotifier;
+ /// Holds the stable identifier of the file currently showing thumbnail
+ /// fallback. Only the file with matching ID should display the indicator.
+ final ValueNotifier<String?> showingThumbnailFallbackNotifier;
+
+ /// Whether the photo viewer is currently zoomed in.
+ final ValueNotifier<bool> isZoomedNotifier;
+
// Cannot be const because we accept a ValueNotifier instance at runtime
// ignore: prefer_const_constructors_in_immutables
InheritedDetailPageState({
diff --cc mobile/apps/photos/lib/ui/viewer/file/detail_page.dart
index ad535c75de,9709696aa5..6098c529a7
--- a/mobile/apps/photos/lib/ui/viewer/file/detail_page.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/detail_page.dart
@@@ -90,8 -89,7 +90,8 @@@ class DetailPage extends StatefulWidge
class _DetailPageState extends State<DetailPage> {
final _enableFullScreenNotifier = ValueNotifier(false);
final _isInSharedCollectionNotifier = ValueNotifier(false);
- final _showingThumbnailFallbackNotifier = ValueNotifier<int?>(null);
+ final _showingThumbnailFallbackNotifier = ValueNotifier<String?>(null);
+ final _isZoomedNotifier = ValueNotifier(false);
@override
void dispose() {
diff --cc mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart
index 1a8fdca603,562819f126..06f789091a
--- a/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart
+++ b/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart
@@@ -100,12 -100,18 +100,20 @@@ class FlagService
bool get useRustForML => internalUser;
+ bool get enableMLInBackground => internalUser;
+
bool get useRustForFaceThumbnails => internalUser;
+ bool get petEnabled => internalUser;
+
bool get qrFeatureEnabled => internalUser;
+ bool get ocrOverlayEnabled => internalUser;
+
+ bool get enableBgLocalUploadPriority => internalUser;
+
+ bool get syncRecoveryDiagnostics => internalUser;
+
Future<void> tryRefreshFlags() async {
try {
await _fetch();