Skip to content

armgit / ente

Public Imported from GitHub
0

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

Show uncategorized album option for all CollectionActionTypes other than for hidden collection actions

ashilkn78bad4e5a5af
diff --git a/mobile/lib/ui/collections/collection_action_sheet.dart b/mobile/lib/ui/collections/collection_action_sheet.dart
index dbc4a57ca6..a827e166bb 100644
--- a/mobile/lib/ui/collections/collection_action_sheet.dart
+++ b/mobile/lib/ui/collections/collection_action_sheet.dart
@@ -270,14 +270,12 @@ class _CollectionActionSheetState extends State<CollectionActionSheet> {
});
return hiddenCollections;
} else {
- final bool includeUncategorized =
- widget.actionType == CollectionActionType.restoreFiles;
final List<Collection> collections =
CollectionsService.instance.getCollectionsForUI(
// in collections where user is a collaborator, only addTo and remove
// action can to be performed
includeCollab: widget.actionType == CollectionActionType.addFiles,
- includeUncategorized: includeUncategorized,
+ includeUncategorized: true,
);
collections.sort((first, second) {
return compareAsciiLowerCaseNatural(
@@ -293,8 +291,7 @@ class _CollectionActionSheetState extends State<CollectionActionSheet> {
if (collection.isQuickLinkCollection() ||
collection.type == CollectionType.favorites ||
collection.type == CollectionType.uncategorized) {
- if (collection.type == CollectionType.uncategorized &&
- includeUncategorized) {
+ if (collection.type == CollectionType.uncategorized) {
uncategorized = collection;
}
continue;