mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-21 20:47:03 -05:00
Forgot the backup manager isn't injected
This commit is contained in:
parent
fa4d61eaf0
commit
1875047638
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue