From 1875047638e43ee7a9d381aeb49e28e59360f902 Mon Sep 17 00:00:00 2001 From: inorichi Date: Sun, 18 Feb 2018 20:16:06 +0100 Subject: [PATCH] Forgot the backup manager isn't injected --- .../java/eu/kanade/tachiyomi/data/backup/BackupCreatorJob.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreatorJob.kt b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreatorJob.kt index 8717f8a890..a1f5aca922 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreatorJob.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupCreatorJob.kt @@ -13,7 +13,7 @@ class BackupCreatorJob : Job() { override fun onRunJob(params: Params): Result { val preferences = Injekt.get() - val backupManager = Injekt.get() + val backupManager = BackupManager(context) val uri = Uri.parse(preferences.backupsDirectory().getOrDefault()) val flags = BackupCreateService.BACKUP_ALL backupManager.createBackup(uri, flags, true)