Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] Fix only-new backup warning acknowledgement

AmanRajSinghMouryabac44d6eefb9
diff --git a/mobile/apps/photos/lib/ui/settings/backup/backup_folder_selection_page.dart b/mobile/apps/photos/lib/ui/settings/backup/backup_folder_selection_page.dart
index 488eb4fee9..a54e5c880f 100644
--- a/mobile/apps/photos/lib/ui/settings/backup/backup_folder_selection_page.dart
+++ b/mobile/apps/photos/lib/ui/settings/backup/backup_folder_selection_page.dart
@@ -165,6 +165,15 @@ class _BackupFolderSelectionPageState extends State<BackupFolderSelectionPage> {
);
},
),
+ ButtonComponent(
+ label: l10n.ok,
+ shouldSurfaceExecutionStates: false,
+ onTap: () async {
+ Navigator.of(sheetContext).pop(
+ _OnlyNewWarningAction.continueBackup,
+ );
+ },
+ ),
],
),
);
@@ -179,6 +188,9 @@ class _BackupFolderSelectionPageState extends State<BackupFolderSelectionPage> {
);
return false;
}
+ if (result == _OnlyNewWarningAction.continueBackup) {
+ return true;
+ }
return false;
}
@@ -452,4 +464,5 @@ class _BackupFolderSelectionPageState extends State<BackupFolderSelectionPage> {
enum _OnlyNewWarningAction {
updateSettings,
+ continueBackup,
}