mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-04 08:08:55 +01:00 
			
		
		
		
	Forgot the backup manager isn't injected
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user