Enable backup manager before restore if it's disabled
This commit is contained in:
parent
c95655aa3a
commit
bf177535e3
1 changed files with 8 additions and 0 deletions
|
@ -38,6 +38,10 @@ public class BackupManagerController {
|
||||||
backupManager.selectBackupTransport(BACKUP_TRANSPORT);
|
backupManager.selectBackupTransport(BACKUP_TRANSPORT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!backupManager.isBackupEnabled()) {
|
||||||
|
backupManager.setBackupEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
BackupSession backupSession = new BackupSession(backupManager, observer, packages);
|
BackupSession backupSession = new BackupSession(backupManager, observer, packages);
|
||||||
backupSession.start();
|
backupSession.start();
|
||||||
return backupSession;
|
return backupSession;
|
||||||
|
@ -49,6 +53,10 @@ public class BackupManagerController {
|
||||||
backupManager.selectBackupTransport(BACKUP_TRANSPORT);
|
backupManager.selectBackupTransport(BACKUP_TRANSPORT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!backupManager.isBackupEnabled()) {
|
||||||
|
backupManager.setBackupEnabled(true);
|
||||||
|
}
|
||||||
|
|
||||||
RestoreSession restoreSession = new RestoreSession(backupManager, observer, packages);
|
RestoreSession restoreSession = new RestoreSession(backupManager, observer, packages);
|
||||||
restoreSession.start();
|
restoreSession.start();
|
||||||
return restoreSession;
|
return restoreSession;
|
||||||
|
|
Loading…
Reference in a new issue