mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 20:31:02 -05:00
Ensure all fields in new migrated manga are persisted (fixes #5848)
This commit is contained in:
parent
6b1f130750
commit
12a593c3c6
1 changed files with 3 additions and 5 deletions
|
@ -149,13 +149,10 @@ class SearchPresenter(
|
|||
db.updateMangaFavorite(prevManga).executeAsBlocking()
|
||||
}
|
||||
manga.favorite = true
|
||||
db.updateMangaFavorite(manga).executeAsBlocking()
|
||||
|
||||
// Update reading preferences
|
||||
manga.chapter_flags = prevManga.chapter_flags
|
||||
db.updateChapterFlags(manga).executeAsBlocking()
|
||||
manga.viewer_flags = prevManga.viewer_flags
|
||||
db.updateViewerFlags(manga).executeAsBlocking()
|
||||
|
||||
// Update date added
|
||||
if (replace) {
|
||||
|
@ -165,8 +162,9 @@ class SearchPresenter(
|
|||
manga.date_added = Date().time
|
||||
}
|
||||
|
||||
// SearchPresenter#networkToLocalManga may have updated the manga title, so ensure db gets updated title
|
||||
db.updateMangaTitle(manga).executeAsBlocking()
|
||||
// SearchPresenter#networkToLocalManga may have updated the manga title,
|
||||
// so ensure db gets updated title too
|
||||
db.insertManga(manga).executeAsBlocking()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue