Skip to content

armgit / ente

Public Imported from GitHub
0

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

Simplify backup flow helper signature

Prateek Sunalb8fed44350e2
diff --git a/mobile/apps/photos/lib/ui/common/backup_flow_helper.dart b/mobile/apps/photos/lib/ui/common/backup_flow_helper.dart
index 348c3af8af..a1e09a983d 100644
--- a/mobile/apps/photos/lib/ui/common/backup_flow_helper.dart
+++ b/mobile/apps/photos/lib/ui/common/backup_flow_helper.dart
@@ -18,7 +18,6 @@ import "package:photos/utils/navigation_util.dart";
Future<void> handleBackupEntryFlow(
BuildContext context, {
Widget Function()? onFirstImportComplete,
- bool isOnboardingFlow = true,
}) async {
final state = await permissionService.requestPhotoMangerPermissions();
if (state == PermissionState.authorized || state == PermissionState.limited) {
@@ -34,8 +33,8 @@ Future<void> handleBackupEntryFlow(
// Wait for initial sync, then proceed to folder selection
await routeToPage(
context,
- LoadingPhotosWidget(
- isOnboardingFlow: isOnboardingFlow,
+ const LoadingPhotosWidget(
+ isOnboardingFlow: false,
),
);
} else {
diff --git a/mobile/apps/photos/lib/ui/settings/backup/backup_section_widget.dart b/mobile/apps/photos/lib/ui/settings/backup/backup_section_widget.dart
index 220ed48e8a..0084034502 100644
--- a/mobile/apps/photos/lib/ui/settings/backup/backup_section_widget.dart
+++ b/mobile/apps/photos/lib/ui/settings/backup/backup_section_widget.dart
@@ -42,7 +42,6 @@ class BackupSectionWidgetState extends State<BackupSectionWidget> {
onTap: () async {
await handleBackupEntryFlow(
context,
- isOnboardingFlow: false,
onFirstImportComplete: () => const BackupFolderSelectionPage(
isFirstBackup: false,
),
@@ -75,7 +74,6 @@ class BackupSectionWidgetState extends State<BackupSectionWidget> {
onTap: () async {
await handleBackupEntryFlow(
context,
- isOnboardingFlow: false,
onFirstImportComplete: () => const BackupSettingsScreen(),
);
},