Forgot the backup manager isn't injected

This commit is contained in:
inorichi 2018-02-18 20:16:06 +01:00
parent fa4d61eaf0
commit 1875047638

View file

@ -13,7 +13,7 @@ class BackupCreatorJob : Job() {
override fun onRunJob(params: Params): Result {
val preferences = Injekt.get<PreferencesHelper>()
val backupManager = Injekt.get<BackupManager>()
val backupManager = BackupManager(context)
val uri = Uri.parse(preferences.backupsDirectory().getOrDefault())
val flags = BackupCreateService.BACKUP_ALL
backupManager.createBackup(uri, flags, true)