Add new manga statuses
To be exposed in extension-lib 1.3
This commit is contained in:
parent
544387d1a0
commit
375a27a93d
@ -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()
|
||||
|
@ -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)
|
||||
|
@ -561,6 +561,9 @@
|
||||
<string name="unknown_author">Unknown author</string>
|
||||
<string name="unknown_status">Unknown status</string>
|
||||
<string name="licensed">Licensed</string>
|
||||
<string name="publishing_finished">Publishing finished</string>
|
||||
<string name="cancelled">Cancelled</string>
|
||||
<string name="on_hiatus">On hiatus</string>
|
||||
<string name="add_to_library">Add to library</string>
|
||||
<string name="in_library">In library</string>
|
||||
<string name="remove_from_library">Remove from library</string>
|
||||
|
Loading…
Reference in New Issue
Block a user