null fix on zoro

This commit is contained in:
LagradOst 2021-10-10 19:16:06 +02:00
parent 24dbf00c67
commit 23871b3036

View file

@ -145,7 +145,7 @@ class HomeFragment : Fragment() {
activity.loadSearchResult(random)
}
home_main_text.text = random.name + if (random is AnimeSearchResponse) {
home_main_text.text = random.name + if (random is AnimeSearchResponse && !random.dubStatus.isNullOrEmpty()) {
random.dubStatus?.joinToString(prefix = "", separator = " | ") { it.name }
} else ""
home_main_poster?.setImage(random.posterUrl)