From becefe1edd3813836fdca81d825f519727928992 Mon Sep 17 00:00:00 2001 From: LagradOst <11805592+LagradOst@users.noreply.github.com> Date: Sun, 3 Apr 2022 13:51:35 +0200 Subject: [PATCH] fixed #894 --- .../java/com/lagradost/cloudstream3/ui/home/HomeFragment.kt | 6 ++---- app/src/main/res/layout/fragment_home_tv.xml | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) 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 9149ba1b..8b8faedf 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 @@ -82,7 +82,6 @@ import kotlinx.android.synthetic.main.fragment_home.home_type_completed_btt import kotlinx.android.synthetic.main.fragment_home.home_type_dropped_btt import kotlinx.android.synthetic.main.fragment_home.home_type_on_hold_btt import kotlinx.android.synthetic.main.fragment_home.home_type_watching_btt -import kotlinx.android.synthetic.main.fragment_home.home_watch_child_more_info import kotlinx.android.synthetic.main.fragment_home.home_watch_child_recyclerview import kotlinx.android.synthetic.main.fragment_home.home_watch_holder import kotlinx.android.synthetic.main.fragment_home.home_watch_parent_item_title @@ -823,9 +822,8 @@ class HomeFragment : Fragment() { for (syncApi in OAuth2API.OAuth2Apis) { val login = syncApi.loginInfo() val pic = login?.profilePicture - if (pic != null) { - home_profile_picture.setImage(pic) - home_profile_picture_holder.isVisible = true + if (home_profile_picture?.setImage(pic) == true) { + home_profile_picture_holder?.isVisible = true break } } diff --git a/app/src/main/res/layout/fragment_home_tv.xml b/app/src/main/res/layout/fragment_home_tv.xml index bf812847..c3afda38 100644 --- a/app/src/main/res/layout/fragment_home_tv.xml +++ b/app/src/main/res/layout/fragment_home_tv.xml @@ -202,7 +202,6 @@ android:layout_width="match_parent" android:layout_height="100dp"> -