Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Go back to search screen if all applied filters are de-selected

ashilkn88891bf24e4a
diff --git a/mobile/lib/ui/viewer/gallery/gallery.dart b/mobile/lib/ui/viewer/gallery/gallery.dart
index 221cffab98..e0587f64b3 100644
--- a/mobile/lib/ui/viewer/gallery/gallery.dart
+++ b/mobile/lib/ui/viewer/gallery/gallery.dart
@@ -204,6 +204,11 @@ class GalleryState extends State<Gallery> {
void _onFiltersUpdated() async {
final filters = _searchFilterDataProvider!.appliedFilters;
+ if (filters.isEmpty) {
+ Navigator.of(context).pop();
+ return;
+ }
+
final filterdFiles = <EnteFile>[];
final _allFilesInDb = await SearchService.instance.getAllFiles();