Fixed restored but errored manga ending up in default category

This commit is contained in:
Jay 2020-04-19 17:29:28 -04:00
parent 5b5239c5eb
commit 541b026fa8

View File

@ -256,12 +256,13 @@ class BackupRestoreService : Service() {
backupManager.restoreMangaFetch(source, manga)
}
// Restore categories
backupManager.restoreCategoriesForManga(manga, categories)
if (!dbMangaExists || !backupManager.restoreChaptersForManga(manga, chapters)) {
// manga gets chapters added
backupManager.restoreChapterFetch(source, manga, chapters)
}
// Restore categories
backupManager.restoreCategoriesForManga(manga, categories)
// Restore history
backupManager.restoreHistoryForManga(history)
// Restore tracking