Skip to content

armgit / ente

Public Imported from GitHub
0

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

Merge branch 'main' into deeplinks

Aman Raj Singh Mouryaa8d1a80578c3
diff --cc mobile/lib/models/gallery_type.dart
index 469cae1a98,bff3a6c312..d0ad67774f
--- a/mobile/lib/models/gallery_type.dart
+++ b/mobile/lib/models/gallery_type.dart
@@@ -20,7 -20,7 +20,8 @@@ enum GalleryType
quickLink,
peopleTag,
cluster,
+ sharedPublicLink,
+ magic,
}
extension GalleyTypeExtension on GalleryType {
@@@ -67,7 -67,7 +69,8 @@@
case GalleryType.sharedCollection:
case GalleryType.locationTag:
case GalleryType.cluster:
+ case GalleryType.sharedPublicLink:
+ case GalleryType.magic:
return false;
}
}
@@@ -161,7 -161,7 +167,8 @@@
case GalleryType.cluster:
case GalleryType.trash:
case GalleryType.locationTag:
+ case GalleryType.sharedPublicLink:
+ case GalleryType.magic:
return false;
}
}
@@@ -183,9 -185,7 +192,8 @@@
case GalleryType.localFolder:
case GalleryType.trash:
case GalleryType.sharedCollection:
- case GalleryType.locationTag:
case GalleryType.cluster:
+ case GalleryType.sharedPublicLink:
return false;
}
}
@@@ -366,16 -363,16 +376,17 @@@ extension GalleryAppBarExtn on GalleryT
case GalleryType.localFolder:
case GalleryType.locationTag:
case GalleryType.searchResults:
- case GalleryType.sharedPublicLink:
- return false;
- case GalleryType.cluster:
+ case GalleryType.magic:
- return false;
- case GalleryType.cluster:
++ return true;
case GalleryType.uncategorized:
++ case GalleryType.cluster:
case GalleryType.peopleTag:
case GalleryType.ownedCollection:
case GalleryType.sharedCollection:
case GalleryType.quickLink:
case GalleryType.favorite:
case GalleryType.hiddenOwnedCollection:
++ case GalleryType.sharedPublicLink:
return true;
}
}
diff --cc mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
index 3a628961ac,3be5b5f8f4..110dd65e37
--- a/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
+++ b/mobile/lib/ui/viewer/gallery/gallery_app_bar_widget.dart
@@@ -90,7 -85,8 +91,9 @@@ enum AlbumPopupAction
pinAlbum,
removeLink,
cleanUncategorized,
+ downloadAlbum,
+ sortByMostRecent,
+ sortByMostRelevant
}
class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {