allow chapter 0 dupe auto mark as read (jobobby04/tachiyomiSY#1291)
(cherry picked from commit 3c09343f7bf08b8567330d8bc9576b799751259f)
This commit is contained in:
parent
ab57496ac5
commit
fdf086e3c8
2 changed files with 2 additions and 2 deletions
|
|
@ -427,7 +427,7 @@ class LibraryUpdateJob(private val context: Context, workerParams: WorkerParamet
|
||||||
it.read
|
it.read
|
||||||
}
|
}
|
||||||
val newReadChapters = this.filter { chapter ->
|
val newReadChapters = this.filter { chapter ->
|
||||||
chapter.chapterNumber > 0 &&
|
chapter.chapterNumber >= 0 &&
|
||||||
readChapters.any {
|
readChapters.any {
|
||||||
it.chapterNumber == chapter.chapterNumber
|
it.chapterNumber == chapter.chapterNumber
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -700,7 +700,7 @@ class ReaderViewModel @JvmOverloads constructor(
|
||||||
// SY <--
|
// SY <--
|
||||||
readerChapter.chapter.read = true
|
readerChapter.chapter.read = true
|
||||||
// SY -->
|
// SY -->
|
||||||
if (readerChapter.chapter.chapter_number > 0 && readerPreferences.markReadDupe().get()) {
|
if (readerChapter.chapter.chapter_number >= 0 && readerPreferences.markReadDupe().get()) {
|
||||||
getChaptersByMangaId.await(manga!!.id).sortedByDescending { it.sourceOrder }
|
getChaptersByMangaId.await(manga!!.id).sortedByDescending { it.sourceOrder }
|
||||||
.filter {
|
.filter {
|
||||||
it.id != readerChapter.chapter.id &&
|
it.id != readerChapter.chapter.id &&
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue