mirror of
https://github.com/null2264/yokai.git
synced 2025-06-21 10:44:42 +00:00
Fix crash (maybe) when sending app to BG while reading
This commit is contained in:
parent
2f1457954c
commit
8f7a45e967
1 changed files with 4 additions and 2 deletions
|
@ -588,9 +588,11 @@ class ReaderViewModel(
|
|||
* Called when reader chapter is changed in reader or when activity is paused.
|
||||
*/
|
||||
private fun saveReadingProgress(readerChapter: ReaderChapter) {
|
||||
db.inTransaction {
|
||||
saveChapterProgress(readerChapter)
|
||||
saveChapterHistory(readerChapter)
|
||||
}
|
||||
}
|
||||
|
||||
fun saveCurrentChapterReadingProgress() = getCurrentChapter()?.let { saveReadingProgress(it) }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue