mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-12-23 01:51:51 +01:00
Extra genre chip text trimming
This commit is contained in:
parent
8de004d281
commit
088160ed32
@ -245,14 +245,16 @@ 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()
|
||||||
val chip = Chip(view.context).apply {
|
.map { it.trim() }
|
||||||
text = genre
|
.forEach { genre ->
|
||||||
setOnClickListener { performSearch(genre) }
|
val chip = Chip(view.context).apply {
|
||||||
}
|
text = genre
|
||||||
|
setOnClickListener { performSearch(genre) }
|
||||||
|
}
|
||||||
|
|
||||||
binding.mangaGenresTags.addView(chip)
|
binding.mangaGenresTags.addView(chip)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Update description TextView.
|
// Update description TextView.
|
||||||
|
Loading…
Reference in New Issue
Block a user