Skip to content

armgit / ente

Public Imported from GitHub
0

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

Move Albums section in search one section up

ashilknba78a57db8c2
diff --git a/lib/models/search/search_types.dart b/lib/models/search/search_types.dart
index 38718ff0bd..fbb808e634 100644
--- a/lib/models/search/search_types.dart
+++ b/lib/models/search/search_types.dart
@@ -41,8 +41,8 @@ enum SectionType {
// People section shows the files shared by other persons
people,
fileCaption,
- fileTypesAndExtension,
album,
+ fileTypesAndExtension,
}
extension SectionTypeExtensions on SectionType {
@@ -68,28 +68,6 @@ extension SectionTypeExtensions on SectionType {
}
}
- // get int id to each section for ordering them
- int get orderID {
- switch (this) {
- case SectionType.face:
- return 0;
- case SectionType.content:
- return 1;
- case SectionType.moment:
- return 2;
- case SectionType.location:
- return 3;
- case SectionType.people:
- return 4;
- case SectionType.album:
- return 5;
- case SectionType.fileTypesAndExtension:
- return 6;
- case SectionType.fileCaption:
- return 7;
- }
- }
-
String getEmptyStateText(BuildContext context) {
switch (this) {
case SectionType.face: