Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Fix grey screen when searching collections in list view

Neeraj Gupta3fa1666e7fb9
diff --git a/mobile/apps/photos/lib/ui/collections/flex_grid_view.dart b/mobile/apps/photos/lib/ui/collections/flex_grid_view.dart
index 75432cc09f..3753010ce9 100644
--- a/mobile/apps/photos/lib/ui/collections/flex_grid_view.dart
+++ b/mobile/apps/photos/lib/ui/collections/flex_grid_view.dart
@@ -216,6 +216,9 @@ class _CollectionsFlexiGridViewWidgetState
widget.shouldShowCreateAlbum && !isAnyAlbumSelected;
final int totalItemCount = totalCollections + (showCreateAlbum ? 1 : 0);
final int displayItemCount = min(totalItemCount, widget.displayLimitCount);
+ if (displayItemCount == 0) {
+ return SliverToBoxAdapter(key: key, child: const SizedBox.shrink());
+ }
return SliverPadding(
key: key,
diff --git a/mobile/apps/photos/scripts/internal_changes.txt b/mobile/apps/photos/scripts/internal_changes.txt
index 711b7fc8c6..c3d350244c 100644
--- a/mobile/apps/photos/scripts/internal_changes.txt
+++ b/mobile/apps/photos/scripts/internal_changes.txt
@@ -1,5 +1,6 @@
Latest changes:
- Neeraj: Contacts
+- Neeraj: Fix grey screen when collections search result is empty
- Ashil: Fix app going blank on iOS on deleting all empty albums
- Ashil: Show family dashboard for family non-admin members too
- Ashil: Updated 'ente' branding