Skip to content

armgit / ente

Public Imported from GitHub
0

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

Avoid flashing dialog when leaving newly created album

Jacques Lucked0ddce280311
diff --git a/mobile/lib/ui/collections/album/new_row_item.dart b/mobile/lib/ui/collections/album/new_row_item.dart
index 3e000cd12d..0415f37dcf 100644
--- a/mobile/lib/ui/collections/album/new_row_item.dart
+++ b/mobile/lib/ui/collections/album/new_row_item.dart
@@ -42,6 +42,10 @@ class NewAlbumRowItemWidget extends StatelessWidget {
try {
final Collection c =
await CollectionsService.instance.createAlbum(text);
+
+ // 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,