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:
parent
8211d6ae68
commit
95f1e44e34
1 changed files with 10 additions and 2 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue