Skip to content

armgit / ente

Public Imported from GitHub
0

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

Stick to old grouping behaviour for magicsearch

Neeraj Guptaf5093ddf638c
diff --git a/mobile/lib/ui/viewer/gallery/gallery.dart b/mobile/lib/ui/viewer/gallery/gallery.dart
index b7edda2719..b255c5c375 100644
--- a/mobile/lib/ui/viewer/gallery/gallery.dart
+++ b/mobile/lib/ui/viewer/gallery/gallery.dart
@@ -290,6 +290,12 @@ class GalleryState extends State<Gallery> {
}
});
}
+ // todo:(neeraj) Stick to default group behaviour for magicSearch and editLocationGallery
+ // In case of Magic search, we need to hide the scrollbar title (can be done
+ // by specifying none as groupType)
+ if (widget.groupType != GroupType.size) {
+ return [files];
+ }
final List<List<EnteFile>> resultGroupedFiles = [];
List<EnteFile> singleGroupFile = [];