User-initiated backups should also be incremental

This commit is contained in:
Torsten Grote 2020-09-22 13:24:03 -03:00 committed by Chirayu Desai
parent db0721cd8d
commit 06c9642a22

View file

@ -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()