From 63054e55d6e768c68b84eafb1725a077073c1ecf Mon Sep 17 00:00:00 2001 From: Marius Albrecht <64852250+MariusAlbrecht@users.noreply.github.com> Date: Tue, 15 Oct 2024 12:39:35 +0200 Subject: [PATCH] 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 b6f57e5656965ed5dd676a1470d9d83985e26ea2) --- .../kotlin/org/koitharu/kotatsu/list/domain/ReadingProgress.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/org/koitharu/kotatsu/list/domain/ReadingProgress.kt b/app/src/main/kotlin/org/koitharu/kotatsu/list/domain/ReadingProgress.kt index e2c638512..4ce030bf0 100644 --- a/app/src/main/kotlin/org/koitharu/kotatsu/list/domain/ReadingProgress.kt +++ b/app/src/main/kotlin/org/koitharu/kotatsu/list/domain/ReadingProgress.kt @@ -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