mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-10-31 14:27:57 +01:00 
			
		
		
		
	Recreate Backup worker with IS_AUTO_BACKUP_KEY flag (#6742)
* Recreate Backup worker with IS_AUTO_BACKUP_KEY flag * Extra safety net to not delete backup folder
This commit is contained in:
		| @@ -256,6 +256,9 @@ object Migrations { | ||||
|                     preferences.extensionInstaller().set(PreferenceValues.ExtensionInstaller.LEGACY) | ||||
|                 } | ||||
|             } | ||||
|             if (oldVersion < 76) { | ||||
|                 BackupCreatorJob.setupTask(context) | ||||
|             } | ||||
|  | ||||
|             return true | ||||
|         } | ||||
|   | ||||
| @@ -32,7 +32,7 @@ class BackupCreatorJob(private val context: Context, workerParams: WorkerParamet | ||||
|         val uri = inputData.getString(LOCATION_URI_KEY)?.let { Uri.parse(it) } | ||||
|             ?: preferences.backupsDirectory().get().toUri() | ||||
|         val flags = inputData.getInt(BACKUP_FLAGS_KEY, BackupConst.BACKUP_ALL) | ||||
|         val isAutoBackup = inputData.getBoolean(IS_AUTO_BACKUP_KEY, false) | ||||
|         val isAutoBackup = inputData.getBoolean(IS_AUTO_BACKUP_KEY, true) | ||||
|  | ||||
|         context.notificationManager.notify(Notifications.ID_BACKUP_PROGRESS, notifier.showBackupProgress().build()) | ||||
|         return try { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user