Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mobile][photos] prevent default hidden album removal

r4khula6fbd029d301
diff --git a/mobile/apps/photos/lib/ui/viewer/file_details/albums_item_widget.dart b/mobile/apps/photos/lib/ui/viewer/file_details/albums_item_widget.dart
index 48adcd23d3..3d838fb8f4 100644
--- a/mobile/apps/photos/lib/ui/viewer/file_details/albums_item_widget.dart
+++ b/mobile/apps/photos/lib/ui/viewer/file_details/albums_item_widget.dart
@@ -153,7 +153,8 @@ class _AlbumsItemWidgetState extends State<AlbumsItemWidget> {
bool _canRemoveFrom(Collection collection) {
if (collection.type == CollectionType.uncategorized ||
- collection.isQuickLinkCollection()) {
+ collection.isQuickLinkCollection() ||
+ collection.isDefaultHidden()) {
return false;
}
if (collection.type == CollectionType.favorites) {