From e8034cfd81864c56f49a601dd5dc726d6bbc219a Mon Sep 17 00:00:00 2001 From: Trrrrw <68099555+Trrrrw@users.noreply.github.com> Date: Thu, 9 Jan 2025 00:31:11 +0800 Subject: [PATCH] Update BangumiModels.kt (Jays2Kings/tachiyomiJ2K#1833) (cherry picked from commit b71d16681aeba661243b9a8110b0c45b32362d52) --- app/src/main/java/eu/kanade/tachiyomi/data/track/TrackStatus.kt | 2 +- .../java/eu/kanade/tachiyomi/data/track/bangumi/BangumiUtils.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/TrackStatus.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/TrackStatus.kt index 62079375fb..e6417d0ff2 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/TrackStatus.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/TrackStatus.kt @@ -86,7 +86,7 @@ enum class TrackStatus(val int: Int, val res: StringResource) { Bangumi.ON_HOLD -> PAUSED Bangumi.PLAN_TO_READ -> PLAN_TO_READ Bangumi.DROPPED -> DROPPED - else -> null + else -> READING } } trackerManager.komga.id -> { diff --git a/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/BangumiUtils.kt b/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/BangumiUtils.kt index 5e38960bf0..a30be2487e 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/BangumiUtils.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/data/track/bangumi/BangumiUtils.kt @@ -8,5 +8,5 @@ fun Track.toApiStatus() = when (status) { Bangumi.ON_HOLD -> "on_hold" Bangumi.DROPPED -> "dropped" Bangumi.PLAN_TO_READ -> "wish" - else -> throw NotImplementedError("Unknown status: $status") + else -> "do" }