Skip to content

armgit / ente

Public Imported from GitHub
0

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

Keep OCR overlay active in full screen mode

Amrithesh Kakkoth Ente7e65b152aa16
diff --git a/mobile/apps/photos/lib/ui/viewer/file/inline_text_detection.dart b/mobile/apps/photos/lib/ui/viewer/file/inline_text_detection.dart
index fb9912bae8..137ddd319c 100644
--- a/mobile/apps/photos/lib/ui/viewer/file/inline_text_detection.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file/inline_text_detection.dart
@@ -194,25 +194,19 @@ class _InlineTextDetectionState extends State<InlineTextDetection> {
?.isZoomedNotifier;
return ValueListenableBuilder<bool>(
- valueListenable: widget.enableFullScreenNotifier,
- builder: (context, isFullScreen, _) {
- return ValueListenableBuilder<bool>(
- valueListenable: isZoomedNotifier ?? ValueNotifier(false),
- builder: (context, isZoomed, _) {
- final bool shouldHide =
- isFullScreen || widget.isGuestView || isZoomed;
-
- return Positioned.fill(
- child: IgnorePointer(
- ignoring: shouldHide,
- child: AnimatedOpacity(
- opacity: shouldHide ? 0.0 : 1.0,
- duration: const Duration(milliseconds: 150),
- child: _buildInlineOverlay(context),
- ),
- ),
- );
- },
+ valueListenable: isZoomedNotifier ?? ValueNotifier(false),
+ builder: (context, isZoomed, _) {
+ final bool shouldHide = widget.isGuestView || isZoomed;
+
+ return Positioned.fill(
+ child: IgnorePointer(
+ ignoring: shouldHide,
+ child: AnimatedOpacity(
+ opacity: shouldHide ? 0.0 : 1.0,
+ duration: const Duration(milliseconds: 150),
+ child: _buildInlineOverlay(context),
+ ),
+ ),
);
},
);