Give "Complete" status only to fully completed Manga

Up until now a progress of >= 99.5% would count a Manga as completed (and show the checkmark icon). This causes manga with 200 chapters or more to be marked as completed even if they have at least one unread chapter.

https://github.com/KotatsuApp/Kotatsu/issues/1105
(cherry picked from commit b6f57e5656)
This commit is contained in:
Marius Albrecht
2024-10-15 12:39:35 +02:00
committed by Koitharu
parent 486daf69bf
commit 63054e55d6

View File

@@ -38,7 +38,7 @@ data class ReadingProgress(
companion object {
const val PROGRESS_NONE = -1f
const val PROGRESS_COMPLETED = 0.995f
const val PROGRESS_COMPLETED = 1f
fun isValid(percent: Float) = percent in 0f..1f