mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
Fix the extra padding for the vertical plaeyr
This commit is contained in:
parent
3cef897e89
commit
e4cbb2b90c
@ -591,6 +591,16 @@ internal class CustomExoPlayerView(
|
|||||||
it.layoutParams = params
|
it.layoutParams = params
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// add padding to the top bar to not overlap the status bar
|
||||||
|
binding.topBar.let {
|
||||||
|
setPadding(
|
||||||
|
it.paddingLeft,
|
||||||
|
(if (newConfig?.orientation == Configuration.ORIENTATION_LANDSCAPE) 25 else 5).toPixel().toInt(),
|
||||||
|
it.paddingRight,
|
||||||
|
it.paddingBottom
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
// don't add extra padding if there's no cutout
|
// don't add extra padding if there's no cutout
|
||||||
if ((context as? MainActivity)?.windowHelper?.hasCutout() == false) return
|
if ((context as? MainActivity)?.windowHelper?.hasCutout() == false) return
|
||||||
|
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
android:animateLayoutChanges="true"
|
android:animateLayoutChanges="true"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
android:paddingHorizontal="5dp"
|
android:paddingHorizontal="5dp"
|
||||||
android:paddingTop="25dp" >
|
android:paddingTop="5dp" >
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user