mirror of
				https://github.com/mihonapp/mihon.git
				synced 2025-11-03 23:58:55 +01:00 
			
		
		
		
	Extra genre chip text trimming
This commit is contained in:
		@@ -245,14 +245,16 @@ class MangaInfoController : NucleusController<MangaInfoPresenter>(),
 | 
			
		||||
        if (!manga.genre.isNullOrBlank()) {
 | 
			
		||||
            binding.mangaGenresTags.removeAllViews()
 | 
			
		||||
 | 
			
		||||
            manga.genre?.split(", ")?.forEach { genre ->
 | 
			
		||||
                val chip = Chip(view.context).apply {
 | 
			
		||||
                    text = genre
 | 
			
		||||
                    setOnClickListener { performSearch(genre) }
 | 
			
		||||
                }
 | 
			
		||||
            manga.genre?.split(", ").orEmpty()
 | 
			
		||||
                .map { it.trim() }
 | 
			
		||||
                .forEach { genre ->
 | 
			
		||||
                    val chip = Chip(view.context).apply {
 | 
			
		||||
                        text = genre
 | 
			
		||||
                        setOnClickListener { performSearch(genre) }
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
                binding.mangaGenresTags.addView(chip)
 | 
			
		||||
            }
 | 
			
		||||
                    binding.mangaGenresTags.addView(chip)
 | 
			
		||||
                }
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        // Update description TextView.
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user