From bf177535e3128f8462864fafb9ed82b6f16ec082 Mon Sep 17 00:00:00 2001 From: Steve Soltys Date: Tue, 30 Jan 2018 00:05:24 -0500 Subject: [PATCH] Enable backup manager before restore if it's disabled --- .../backup/session/BackupManagerController.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/com/stevesoltys/backup/session/BackupManagerController.java b/src/com/stevesoltys/backup/session/BackupManagerController.java index 295a5664..edc884d9 100644 --- a/src/com/stevesoltys/backup/session/BackupManagerController.java +++ b/src/com/stevesoltys/backup/session/BackupManagerController.java @@ -38,6 +38,10 @@ public class BackupManagerController { backupManager.selectBackupTransport(BACKUP_TRANSPORT); } + if (!backupManager.isBackupEnabled()) { + backupManager.setBackupEnabled(true); + } + BackupSession backupSession = new BackupSession(backupManager, observer, packages); backupSession.start(); return backupSession; @@ -49,6 +53,10 @@ public class BackupManagerController { backupManager.selectBackupTransport(BACKUP_TRANSPORT); } + if (!backupManager.isBackupEnabled()) { + backupManager.setBackupEnabled(true); + } + RestoreSession restoreSession = new RestoreSession(backupManager, observer, packages); restoreSession.start(); return restoreSession;