mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Fix status bar padding on None
This commit is contained in:
parent
9ee0653ecf
commit
617fc4a295
2 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -434,7 +434,11 @@
|
|||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
|
||||
|
||||
<!--
|
||||
All padding in home_watch_holder is determined in runtime
|
||||
This is because the home poster can be invisible which forces
|
||||
us to take the status bar space into account
|
||||
-->
|
||||
<LinearLayout
|
||||
android:id="@+id/home_watch_holder"
|
||||
android:layout_width="match_parent"
|
||||
|
|
Loading…
Reference in a new issue