From c9fe934b3bde472a579b465fbd3b21448b819930 Mon Sep 17 00:00:00 2001 From: Shubham Date: Thu, 19 Sep 2024 12:44:47 +0530 Subject: [PATCH] Revert "Update backup.provider.dart" This reverts commit ac2b7acef9c4390a61a30884a05589723f572403. --- mobile/lib/providers/backup/backup.provider.dart | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mobile/lib/providers/backup/backup.provider.dart b/mobile/lib/providers/backup/backup.provider.dart index 14359e3afc..9329f9b1f7 100644 --- a/mobile/lib/providers/backup/backup.provider.dart +++ b/mobile/lib/providers/backup/backup.provider.dart @@ -313,9 +313,6 @@ class BackupNotifier extends StateNotifier { /// Those assets are unique and are used as the total assets /// Future _updateBackupAssetCount() async { - // Save to persistent storage - await _updatePersistentAlbumsSelection(); - final duplicatedAssetIds = await _backupService.getDuplicatedAssetIds(); final Set assetsFromSelectedAlbums = {}; final Set assetsFromExcludedAlbums = {}; @@ -412,6 +409,8 @@ class BackupNotifier extends StateNotifier { ); } + // Save to persistent storage + await _updatePersistentAlbumsSelection(); } /// Get all necessary information for calculating the available albums,