Fixed restored but errored manga ending up in default category
This commit is contained in:
parent
5b5239c5eb
commit
541b026fa8
1 changed files with 3 additions and 2 deletions
|
@ -256,12 +256,13 @@ class BackupRestoreService : Service() {
|
||||||
backupManager.restoreMangaFetch(source, manga)
|
backupManager.restoreMangaFetch(source, manga)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Restore categories
|
||||||
|
backupManager.restoreCategoriesForManga(manga, categories)
|
||||||
|
|
||||||
if (!dbMangaExists || !backupManager.restoreChaptersForManga(manga, chapters)) {
|
if (!dbMangaExists || !backupManager.restoreChaptersForManga(manga, chapters)) {
|
||||||
// manga gets chapters added
|
// manga gets chapters added
|
||||||
backupManager.restoreChapterFetch(source, manga, chapters)
|
backupManager.restoreChapterFetch(source, manga, chapters)
|
||||||
}
|
}
|
||||||
// Restore categories
|
|
||||||
backupManager.restoreCategoriesForManga(manga, categories)
|
|
||||||
// Restore history
|
// Restore history
|
||||||
backupManager.restoreHistoryForManga(history)
|
backupManager.restoreHistoryForManga(history)
|
||||||
// Restore tracking
|
// Restore tracking
|
||||||
|
|
Reference in a new issue