Skip to content

armgit / ente

Public Imported from GitHub
0

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

Pin uncategorized album to top of collection action sheet

ashilknb69f1bd23793
diff --git a/mobile/lib/ui/collections/collection_action_sheet.dart b/mobile/lib/ui/collections/collection_action_sheet.dart
index 7d5b14a8ef..99c41f59fc 100644
--- a/mobile/lib/ui/collections/collection_action_sheet.dart
+++ b/mobile/lib/ui/collections/collection_action_sheet.dart
@@ -397,10 +397,10 @@ class _CollectionActionSheetState extends State<CollectionActionSheet> {
unpinned.add(collection);
}
}
- return recentlyCreated +
- pinned +
- unpinned +
- (uncategorized != null ? [uncategorized] : []);
+
+ return uncategorized != null
+ ? [uncategorized] + recentlyCreated + pinned + unpinned
+ : recentlyCreated + pinned + unpinned;
}
}