Fix ReaderViewModel::updateChapterProgress

The condition for updating progress is wrong since fefa8f84982b537ca930438f7976087844d5bb9c
This commit is contained in:
KokaKiwi 2025-04-16 11:17:52 +02:00 committed by Cuong-Tran
parent 438be9d942
commit b3efb5fbac
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2

View file

@ -703,7 +703,7 @@ class ReaderViewModel @JvmOverloads constructor(
readerChapter.requestedPage = pageIndex
chapterPageIndex = pageIndex
if (!incognitoMode && page.status is Page.State.Error) {
if (!incognitoMode && page.status !is Page.State.Error) {
readerChapter.chapter.last_page_read = pageIndex
if (readerChapter.pages?.lastIndex == pageIndex ||