π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix add new album flow
AmanRajSinghMouryaa0d7a88a6b5a
diff --git a/mobile/apps/photos/lib/models/search/search_types.dart b/mobile/apps/photos/lib/models/search/search_types.dartindex eb0cd0ea85..d5e27e671c 100644--- a/mobile/apps/photos/lib/models/search/search_types.dart+++ b/mobile/apps/photos/lib/models/search/search_types.dart@@ -187,11 +187,14 @@ extension SectionTypeExtensions on SectionType {try {final Collection c =await CollectionsService.instance.createAlbum(text);- unawaited(- routeToPage(- context,- CollectionPage(CollectionWithThumbnail(c, null)),- ),++ // Close the dialog now so that it does not flash when leaving the album again.+ Navigator.of(context).pop();++ // ignore: unawaited_futures+ await routeToPage(+ context,+ CollectionPage(CollectionWithThumbnail(c, null)),);} catch (e, s) {Logger("CreateNewAlbumIcon")diff --git a/mobile/apps/photos/lib/ui/collections/album/vertical_list.dart b/mobile/apps/photos/lib/ui/collections/album/vertical_list.dartindex aeb1fdc545..1c5ef2367d 100644--- a/mobile/apps/photos/lib/ui/collections/album/vertical_list.dart+++ b/mobile/apps/photos/lib/ui/collections/album/vertical_list.dart@@ -142,7 +142,7 @@ class _AlbumVerticalListWidgetState extends State<AlbumVerticalListWidget> {},showOnlyLoadingState: true,textCapitalization: TextCapitalization.words,- popnavAfterSubmission: false,+ popnavAfterSubmission: true,);if (result is Exception) {await showGenericErrorDialog(