From daa3fcd354fa4e8590d843c7a9c6817eb99afd4a Mon Sep 17 00:00:00 2001 From: Aman Raj Singh Mourya Date: Tue, 15 Apr 2025 19:17:02 +0530 Subject: [PATCH] [mob][photos] fix: hide "add new album" options when any album is selected --- mobile/lib/ui/collections/flex_grid_view.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mobile/lib/ui/collections/flex_grid_view.dart b/mobile/lib/ui/collections/flex_grid_view.dart index 646fd7a359..bc3a6bfa5b 100644 --- a/mobile/lib/ui/collections/flex_grid_view.dart +++ b/mobile/lib/ui/collections/flex_grid_view.dart @@ -111,7 +111,7 @@ class _CollectionsFlexiGridViewWidgetState albumsCountInOneRow; final List gridItems = []; - if (widget.shouldShowCreateAlbum) { + if (widget.shouldShowCreateAlbum && !isAnyAlbumSelected) { gridItems.add( NewAlbumRowItemWidget( height: sideOfThumbnail, @@ -168,7 +168,7 @@ class _CollectionsFlexiGridViewWidgetState Widget _buildListView(BuildContext context, Key key) { final List listItems = []; - if (widget.shouldShowCreateAlbum) { + if (widget.shouldShowCreateAlbum && !isAnyAlbumSelected) { listItems.add( GestureDetector( onTap: () async {