fix(merged-entry): Fix update progress and mark duplicate as read for merged entries (#1226)

* fix(merged-entry): Fix update progress and mark duplicate as read for merged entries

* Change brightnessOverlayValue annotation from param to field
This commit is contained in:
Cuong-Tran 2025-10-13 11:21:25 +07:00 committed by GitHub
parent 8211d6ae68
commit 95f1e44e34
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -252,7 +252,15 @@ class ReaderViewModel @JvmOverloads constructor(
private val unfilteredChapterList by lazy {
val manga = manga!!
runBlocking { getChaptersByMangaId.await(manga.id, applyFilter = false) }
runBlocking {
// KMK -->
if (manga.source == MERGED_SOURCE_ID) {
getMergedChaptersByMangaId.await(manga.id, dedupe = false, applyFilter = false)
} else {
getChaptersByMangaId.await(manga.id, applyFilter = false)
}
// KMK <--
}
}
/**
@ -1455,7 +1463,7 @@ class ReaderViewModel @JvmOverloads constructor(
val viewer: Viewer? = null,
val dialog: Dialog? = null,
val menuVisible: Boolean = false,
@IntRange(from = -100, to = 100) val brightnessOverlayValue: Int = 0,
@field:IntRange(from = -100, to = 100) val brightnessOverlayValue: Int = 0,
// SY -->
/** for display page number in double-page mode */