π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Use better name
ashilknabe313fff2c5
diff --git a/mobile/lib/ui/tools/free_space_page.dart b/mobile/lib/ui/tools/free_space_page.dartindex 3f957ad5f8..664bf49c3e 100644--- a/mobile/lib/ui/tools/free_space_page.dart+++ b/mobile/lib/ui/tools/free_space_page.dart@@ -166,20 +166,21 @@ class _FreeSpacePageState extends State<FreeSpacePage> {}Future<void> _freeStorage(BackupStatus status) async {- bool result = await deleteLocalFiles(context, status.localIDs);+ bool isSuccess = await deleteLocalFiles(context, status.localIDs);- if (result == false) {- result = await deleteLocalFilesAfterRemovingAlreadyDeletedIDs(+ if (isSuccess == false) {+ isSuccess = await deleteLocalFilesAfterRemovingAlreadyDeletedIDs(context,status.localIDs,);}- if (result == false && Platform.isAndroid) {- result = await retryFreeUpSpaceAfterRemovingNonExistingAssets(context);+ if (isSuccess == false && Platform.isAndroid) {+ isSuccess =+ await retryFreeUpSpaceAfterRemovingAssetsNonExistingInDisk(context);}- if (result) {+ if (isSuccess) {Navigator.of(context).pop(true);} else {showToast(context, S.of(context).couldNotFreeUpSpace);diff --git a/mobile/lib/utils/delete_file_util.dart b/mobile/lib/utils/delete_file_util.dartindex 60f09c1276..0bee866ed3 100644--- a/mobile/lib/utils/delete_file_util.dart+++ b/mobile/lib/utils/delete_file_util.dart@@ -469,11 +469,11 @@ Future<bool> deleteLocalFilesAfterRemovingAlreadyDeletedIDs(}/// Only to be used on Android-Future<bool> retryFreeUpSpaceAfterRemovingNonExistingAssets(+Future<bool> retryFreeUpSpaceAfterRemovingAssetsNonExistingInDisk(BuildContext context,) async {_logger.info(- "Retrying free up space after removing non-existing assets",+ "Retrying free up space after removing assets non-existing in disk",);final dialog =