Compare commits

..

No commits in common. "016f627fb0998dabcd6aea907b54365aa4e6a285" and "a2dc88965b8b06cd40d65b75450e1ca4a1e08bd4" have entirely different histories.

2 changed files with 2 additions and 4 deletions

View File

@ -10,7 +10,6 @@ import tachiyomi.domain.chapter.interactor.UpdateChapter
import tachiyomi.domain.chapter.model.toChapterUpdate
import tachiyomi.domain.track.interactor.InsertTrack
import tachiyomi.domain.track.model.Track
import kotlin.math.max
class SyncChapterProgressWithTrack(
private val updateChapter: UpdateChapter,
@ -37,8 +36,7 @@ class SyncChapterProgressWithTrack(
// only take into account continuous reading
val localLastRead = sortedChapters.takeWhile { it.read }.lastOrNull()?.chapterNumber ?: 0F
val lastRead = max(remoteTrack.lastChapterRead, localLastRead.toDouble())
val updatedTrack = remoteTrack.copy(lastChapterRead = lastRead)
val updatedTrack = remoteTrack.copy(lastChapterRead = localLastRead.toDouble())
try {
tracker.update(updatedTrack.toDbTrack())

View File

@ -1,5 +1,5 @@
[versions]
kotlin_version = "2.0.21"
kotlin_version = "2.0.20"
serialization_version = "1.7.3"
xml_serialization_version = "0.86.3"