From 06c9642a22bd0b7874f4dd5332634511e6fb157e Mon Sep 17 00:00:00 2001 From: Torsten Grote Date: Tue, 22 Sep 2020 13:24:03 -0300 Subject: [PATCH] User-initiated backups should also be incremental --- .../seedvault/transport/ConfigurableBackupTransportService.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/com/stevesoltys/seedvault/transport/ConfigurableBackupTransportService.kt b/app/src/main/java/com/stevesoltys/seedvault/transport/ConfigurableBackupTransportService.kt index 7f666c55..4812210c 100644 --- a/app/src/main/java/com/stevesoltys/seedvault/transport/ConfigurableBackupTransportService.kt +++ b/app/src/main/java/com/stevesoltys/seedvault/transport/ConfigurableBackupTransportService.kt @@ -63,8 +63,7 @@ fun requestBackup(context: Context) { val observer = NotificationBackupObserver(context, packages.size, appTotals) val result = try { val backupManager: IBackupManager = get().koin.get() - // TODO check why this is not doing incremental K/V backups like `bmgr backupnow` - backupManager.requestBackup(packages, observer, BackupMonitor(), FLAG_USER_INITIATED) + backupManager.requestBackup(packages, observer, BackupMonitor(), 0) } catch (e: RemoteException) { Log.e(TAG, "Error during backup: ", e) val nm: BackupNotificationManager = get().koin.get()