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 eaea7093e..d6d4930e2 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 @@ -270,15 +270,17 @@ class MangaInfoHeaderAdapter( } } - // Update status TextView. - binding.mangaStatus.setText( - when (manga.status) { - SManga.ONGOING -> R.string.ongoing - SManga.COMPLETED -> R.string.completed - SManga.LICENSED -> R.string.licensed - else -> R.string.unknown_status + // Update manga status. + binding.apply { + val (statusDrawable, statusString) = when (manga.status) { + 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 + else -> R.drawable.ic_status_unknown_24dp to R.string.unknown } - ) + mangaStatusIcon.setImageResource(statusDrawable) + mangaStatus.setText(statusString) + } // Set the favorite drawable to the correct one. setFavoriteButtonState(manga.favorite) diff --git a/app/src/main/res/drawable/ic_status_completed_24dp.xml b/app/src/main/res/drawable/ic_status_completed_24dp.xml new file mode 100644 index 000000000..2e2413479 --- /dev/null +++ b/app/src/main/res/drawable/ic_status_completed_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_status_licensed_24dp.xml b/app/src/main/res/drawable/ic_status_licensed_24dp.xml new file mode 100644 index 000000000..ba6217217 --- /dev/null +++ b/app/src/main/res/drawable/ic_status_licensed_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_status_ongoing_24dp.xml b/app/src/main/res/drawable/ic_status_ongoing_24dp.xml new file mode 100644 index 000000000..feebf134f --- /dev/null +++ b/app/src/main/res/drawable/ic_status_ongoing_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/drawable/ic_status_unknown_24dp.xml b/app/src/main/res/drawable/ic_status_unknown_24dp.xml new file mode 100644 index 000000000..7fa2fa53e --- /dev/null +++ b/app/src/main/res/drawable/ic_status_unknown_24dp.xml @@ -0,0 +1,9 @@ + + + diff --git a/app/src/main/res/layout-sw720dp/manga_info_header.xml b/app/src/main/res/layout-sw720dp/manga_info_header.xml index 782d0086a..271d8227d 100644 --- a/app/src/main/res/layout-sw720dp/manga_info_header.xml +++ b/app/src/main/res/layout-sw720dp/manga_info_header.xml @@ -95,6 +95,15 @@ android:layout_width="wrap_content" android:layout_height="wrap_content"> + + + +