Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Document use of isSelectionMode in Gallery widget

ashilknde9c294977b4
diff --git a/mobile/lib/ui/viewer/gallery/gallery.dart b/mobile/lib/ui/viewer/gallery/gallery.dart
index be41f11ff2..4438a60f13 100644
--- a/mobile/lib/ui/viewer/gallery/gallery.dart
+++ b/mobile/lib/ui/viewer/gallery/gallery.dart
@@ -53,7 +53,9 @@ class Gallery extends StatefulWidget {
final bool limitSelectionToOne;
/// When true, the gallery will be in selection mode. Tapping on any item
- /// will select even when no other item is selected.
+ /// will select it even when no other item is selected. This is only used to
+ /// make selection possible without long pressing. If a gallery has selected
+ /// files, it's not necessary that this will be true.
final bool inSelectionMode;
final bool showSelectAllByDefault;
final bool isScrollablePositionedList;