From 617fc4a2957cadbb766f4d161111f06f7e81d703 Mon Sep 17 00:00:00 2001 From: Blatzar <46196380+Blatzar@users.noreply.github.com> Date: Fri, 28 Oct 2022 21:43:56 +0200 Subject: [PATCH] Fix status bar padding on None --- .../java/com/lagradost/cloudstream3/ui/home/HomeFragment.kt | 3 +++ app/src/main/res/layout/fragment_home.xml | 6 +++++- 2 files changed, 8 insertions(+), 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 813cf870..43732dd6 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 @@ -545,6 +545,8 @@ class HomeFragment : Fragment() { when (preview) { is Resource.Success -> { home_preview?.isVisible = true + home_watch_holder?.setPadding(0,0,0,0) + preview.value.apply { home_preview_tags?.text = tags?.joinToString(" • ") ?: "" home_preview_tags?.isGone = tags.isNullOrEmpty() @@ -592,6 +594,7 @@ class HomeFragment : Fragment() { } else -> { home_preview?.isVisible = false + context?.fixPaddingStatusbar(home_watch_holder) } } } diff --git a/app/src/main/res/layout/fragment_home.xml b/app/src/main/res/layout/fragment_home.xml index 222852f7..17bce297 100644 --- a/app/src/main/res/layout/fragment_home.xml +++ b/app/src/main/res/layout/fragment_home.xml @@ -434,7 +434,11 @@ - +