From c4ce3dd46fe3ebf9b33b256106b8690e5543ddb8 Mon Sep 17 00:00:00 2001 From: arkon Date: Tue, 17 Oct 2023 22:32:13 -0400 Subject: [PATCH] Update background job preferences once settings are restored Co-authored-by: Jays2Kings --- .../java/eu/kanade/tachiyomi/data/backup/BackupRestorer.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupRestorer.kt b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupRestorer.kt index c912be3f9b..ec34ce08a6 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupRestorer.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/backup/BackupRestorer.kt @@ -17,6 +17,7 @@ import eu.kanade.tachiyomi.data.backup.models.IntPreferenceValue import eu.kanade.tachiyomi.data.backup.models.LongPreferenceValue import eu.kanade.tachiyomi.data.backup.models.StringPreferenceValue import eu.kanade.tachiyomi.data.backup.models.StringSetPreferenceValue +import eu.kanade.tachiyomi.data.library.LibraryUpdateJob import eu.kanade.tachiyomi.source.model.copyFrom import eu.kanade.tachiyomi.source.sourcePreferences import eu.kanade.tachiyomi.util.BackupUtil @@ -589,6 +590,9 @@ class BackupRestorer( private fun restoreAppPreferences(preferences: List) { restorePreferences(preferences, preferenceStore) + LibraryUpdateJob.setupTask(context) + BackupCreateJob.setupTask(context) + restoreProgress += 1 showRestoreProgress(restoreProgress, restoreAmount, context.getString(R.string.app_settings), context.getString(R.string.restoring_backup)) }