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 8185b6af6e
commit d7ca8151fd

View file

@ -63,8 +63,7 @@ fun requestBackup(context: Context) {
val observer = NotificationBackupObserver(context, packages.size, appTotals) val observer = NotificationBackupObserver(context, packages.size, appTotals)
val result = try { val result = try {
val backupManager: IBackupManager = get().koin.get() 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(), 0)
backupManager.requestBackup(packages, observer, BackupMonitor(), FLAG_USER_INITIATED)
} catch (e: RemoteException) { } catch (e: RemoteException) {
Log.e(TAG, "Error during backup: ", e) Log.e(TAG, "Error during backup: ", e)
val nm: BackupNotificationManager = get().koin.get() val nm: BackupNotificationManager = get().koin.get()