Extra genre chip text trimming

This commit is contained in:
arkon 2020-04-17 19:51:57 -04:00
parent 8de004d281
commit 088160ed32

View File

@ -245,7 +245,9 @@ class MangaInfoController : NucleusController<MangaInfoPresenter>(),
if (!manga.genre.isNullOrBlank()) {
binding.mangaGenresTags.removeAllViews()
manga.genre?.split(", ")?.forEach { genre ->
manga.genre?.split(", ").orEmpty()
.map { it.trim() }
.forEach { genre ->
val chip = Chip(view.context).apply {
text = genre
setOnClickListener { performSearch(genre) }