Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] fix: hide "add new album" options when any album is selected

Aman Raj Singh Mouryadaa3fcd354fa
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<Widget> 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<Widget> listItems = [];
- if (widget.shouldShowCreateAlbum) {
+ if (widget.shouldShowCreateAlbum && !isAnyAlbumSelected) {
listItems.add(
GestureDetector(
onTap: () async {