User-initiated backups should also be incremental
This commit is contained in:
parent
db0721cd8d
commit
06c9642a22
1 changed files with 1 additions and 2 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue