π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Gate inline OCR overlay behind internal user flag
Amrithesh Kakkoth Ente12c27b35ab5b
diff --git a/mobile/apps/photos/lib/ui/viewer/file/detail_page.dart b/mobile/apps/photos/lib/ui/viewer/file/detail_page.dartindex 41b22f769d..a86fd70fdb 100644--- a/mobile/apps/photos/lib/ui/viewer/file/detail_page.dart+++ b/mobile/apps/photos/lib/ui/viewer/file/detail_page.dart@@ -254,15 +254,25 @@ class _BodyState extends State<_Body> {ValueListenableBuilder(valueListenable: _selectedIndexNotifier,builder: (BuildContext context, int selectedIndex, _) {- return widget.config.mode == DetailPageMode.minimalistic- ? const SizedBox.shrink()- : InlineTextDetection(- file: _files![selectedIndex],- enableFullScreenNotifier:- InheritedDetailPageState.of(context)- .enableFullScreenNotifier,- isGuestView: isGuestView,- );+ if (widget.config.mode == DetailPageMode.minimalistic) {+ return const SizedBox.shrink();+ }+ if (flagService.ocrOverlayEnabled) {+ return InlineTextDetection(+ file: _files![selectedIndex],+ enableFullScreenNotifier:+ InheritedDetailPageState.of(context)+ .enableFullScreenNotifier,+ isGuestView: isGuestView,+ );+ }+ return TextDetectionOverlayButton(+ file: _files![selectedIndex],+ enableFullScreenNotifier:+ InheritedDetailPageState.of(context)+ .enableFullScreenNotifier,+ isGuestView: isGuestView,+ );},),if (_qrHelper != null)diff --git a/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart b/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dartindex 4f1ab63fcc..1a8fdca603 100644--- a/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart+++ b/mobile/apps/photos/plugins/ente_feature_flag/lib/src/service.dart@@ -104,6 +104,8 @@ class FlagService {bool get qrFeatureEnabled => internalUser;+ bool get ocrOverlayEnabled => internalUser;+Future<void> tryRefreshFlags() async {try {await _fetch();