Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Keep select all feature behind feature flag

ashilkn46b9aa259ca6
diff --git a/mobile/lib/ui/viewer/actions/file_selection_overlay_bar.dart b/mobile/lib/ui/viewer/actions/file_selection_overlay_bar.dart
index 0cfb39c51f..735459bf82 100644
--- a/mobile/lib/ui/viewer/actions/file_selection_overlay_bar.dart
+++ b/mobile/lib/ui/viewer/actions/file_selection_overlay_bar.dart
@@ -3,6 +3,7 @@ import "package:photos/face/model/person.dart";
import 'package:photos/models/collection/collection.dart';
import 'package:photos/models/gallery_type.dart';
import 'package:photos/models/selected_files.dart';
+import "package:photos/service_locator.dart";
import "package:photos/theme/effects.dart";
import "package:photos/theme/ente_theme.dart";
import 'package:photos/ui/components/bottom_action_bar/bottom_action_bar_widget.dart';
@@ -68,11 +69,15 @@ class _FileSelectionOverlayBarState extends State<FileSelectionOverlayBar> {
mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.end,
children: [
- Padding(
- padding: const EdgeInsets.only(right: 4),
- child: SelectAllButton(backgroundColor: widget.backgroundColor),
- ),
- const SizedBox(height: 8),
+ flagService.internalUser
+ ? Padding(
+ padding: const EdgeInsets.only(right: 4),
+ child: SelectAllButton(
+ backgroundColor: widget.backgroundColor,
+ ),
+ )
+ : const SizedBox.shrink(),
+ if (flagService.internalUser) const SizedBox(height: 8),
Container(
decoration: BoxDecoration(
boxShadow: shadowFloatFaintLight,