From 375a27a93d76292a47310e9544c895f517af35f9 Mon Sep 17 00:00:00 2001 From: arkon Date: Sat, 8 Jan 2022 15:39:45 -0500 Subject: [PATCH] Add new manga statuses To be exposed in extension-lib 1.3 --- app/src/main/java/eu/kanade/tachiyomi/source/model/SManga.kt | 3 +++ .../kanade/tachiyomi/ui/manga/info/MangaInfoHeaderAdapter.kt | 3 +++ app/src/main/res/values/strings.xml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/app/src/main/java/eu/kanade/tachiyomi/source/model/SManga.kt b/app/src/main/java/eu/kanade/tachiyomi/source/model/SManga.kt index 5924aca86..b32f57ee1 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/source/model/SManga.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/source/model/SManga.kt @@ -56,6 +56,9 @@ interface SManga : Serializable { const val ONGOING = 1 const val COMPLETED = 2 const val LICENSED = 3 + const val PUBLISHING_FINISHED = 4 + const val CANCELLED = 5 + const val ON_HIATUS = 6 fun create(): SManga { return SMangaImpl() diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoHeaderAdapter.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoHeaderAdapter.kt index a6eda2c59..de6b5a5b3 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoHeaderAdapter.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoHeaderAdapter.kt @@ -273,6 +273,9 @@ class MangaInfoHeaderAdapter( SManga.ONGOING -> R.drawable.ic_status_ongoing_24dp to R.string.ongoing SManga.COMPLETED -> R.drawable.ic_status_completed_24dp to R.string.completed SManga.LICENSED -> R.drawable.ic_status_licensed_24dp to R.string.licensed + SManga.PUBLISHING_FINISHED -> R.drawable.ic_done_24dp to R.string.publishing_finished + SManga.CANCELLED -> R.drawable.ic_close_24dp to R.string.cancelled + SManga.ON_HIATUS -> R.drawable.ic_pause_24dp to R.string.on_hiatus else -> R.drawable.ic_status_unknown_24dp to R.string.unknown } binding.mangaStatusIcon.setImageResource(statusDrawable) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 9d05ec067..2b2279874 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -561,6 +561,9 @@ Unknown author Unknown status Licensed + Publishing finished + Cancelled + On hiatus Add to library In library Remove from library