From 23871b30363a7fbdec9b51203f5ce5a413ad2ece Mon Sep 17 00:00:00 2001 From: LagradOst Date: Sun, 10 Oct 2021 19:16:06 +0200 Subject: [PATCH] null fix on zoro --- .../java/com/lagradost/cloudstream3/ui/home/HomeFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/home/HomeFragment.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/home/HomeFragment.kt index 03d1498b..dc22a2a0 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/home/HomeFragment.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/home/HomeFragment.kt @@ -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)