mirror of
https://github.com/mihonapp/mihon.git
synced 2024-11-07 19:27:25 +01:00
Extra genre chip text trimming
This commit is contained in:
parent
8de004d281
commit
088160ed32
@ -245,7 +245,9 @@ class MangaInfoController : NucleusController<MangaInfoPresenter>(),
|
|||||||
if (!manga.genre.isNullOrBlank()) {
|
if (!manga.genre.isNullOrBlank()) {
|
||||||
binding.mangaGenresTags.removeAllViews()
|
binding.mangaGenresTags.removeAllViews()
|
||||||
|
|
||||||
manga.genre?.split(", ")?.forEach { genre ->
|
manga.genre?.split(", ").orEmpty()
|
||||||
|
.map { it.trim() }
|
||||||
|
.forEach { genre ->
|
||||||
val chip = Chip(view.context).apply {
|
val chip = Chip(view.context).apply {
|
||||||
text = genre
|
text = genre
|
||||||
setOnClickListener { performSearch(genre) }
|
setOnClickListener { performSearch(genre) }
|
||||||
|
Loading…
Reference in New Issue
Block a user