π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Reorder delete progress update in _deleteEmptyAlbums method
AmanRajSinghMourya4318013b490d
diff --git a/mobile/apps/photos/lib/ui/viewer/actions/delete_empty_albums.dart b/mobile/apps/photos/lib/ui/viewer/actions/delete_empty_albums.dartindex 53186ee8e3..94ea67afce 100644--- a/mobile/apps/photos/lib/ui/viewer/actions/delete_empty_albums.dart+++ b/mobile/apps/photos/lib/ui/viewer/actions/delete_empty_albums.dart@@ -152,14 +152,6 @@ class _DeleteEmptyAlbumsState extends State<DeleteEmptyAlbums> {for (int i = 0; i < totalCount; i++) {if (mounted && !_isCancelled) {- final int current = i + 1;- final String currentlyDeleting =- current.toString().padLeft(totalDigits, '0');-- _deleteProgress.value = AppLocalizations.of(context).deleteProgress(- currentlyDeleting: currentlyDeleting,- totalCount: totalCount,- );try {await CollectionsService.instance.trashEmptyCollection(collections[i],@@ -168,6 +160,14 @@ class _DeleteEmptyAlbumsState extends State<DeleteEmptyAlbums> {} catch (_) {failedCount++;}+ final int current = i + 1;+ final String currentlyDeleting =+ current.toString().padLeft(totalDigits, '0');++ _deleteProgress.value = AppLocalizations.of(context).deleteProgress(+ currentlyDeleting: currentlyDeleting,+ totalCount: totalCount,+ );}}if (failedCount > 0) {