mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
remove black bars
This commit is contained in:
parent
17cf24a5aa
commit
423acaa74b
@ -695,8 +695,7 @@ class PlayerFragment : Fragment() {
|
||||
// Set new width/height of view
|
||||
// height or width must be cast to float as int/int will give 0
|
||||
|
||||
val currentWidth = binding.mainContainer.height
|
||||
// Redraw myView
|
||||
// Redraw the player container with the new layout height
|
||||
(binding.mainContainer.layoutParams as ConstraintLayout.LayoutParams).apply {
|
||||
matchConstraintPercentHeight = (
|
||||
videoSize.height / videoSize.width
|
||||
|
@ -131,7 +131,6 @@
|
||||
android:layout_height="@dimen/exo_styled_bottom_bar_height"
|
||||
android:layout_gravity="bottom"
|
||||
android:layout_marginTop="@dimen/exo_styled_bottom_bar_margin_top"
|
||||
android:background="@color/exo_bottom_bar_background"
|
||||
android:layoutDirection="ltr">
|
||||
|
||||
<LinearLayout
|
||||
@ -199,7 +198,6 @@
|
||||
android:id="@id/exo_progress"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="15dp"
|
||||
android:background="@color/exo_bottom_bar_background"
|
||||
app:bar_height="2dp"
|
||||
app:played_color="?attr/colorOnSecondary"
|
||||
app:scrubber_color="?attr/colorOnPrimary"
|
||||
@ -234,15 +232,15 @@
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<Button
|
||||
android:id="@id/exo_rew_with_amount"
|
||||
style="@style/ExoStyledControls.Button.Center.RewWithAmount"
|
||||
android:layout_marginLeft="20dp"
|
||||
android:layout_gravity="center" />
|
||||
android:layout_gravity="center"
|
||||
android:layout_marginLeft="20dp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
@ -252,8 +250,8 @@
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="0dp"
|
||||
android:layout_weight="1"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_weight="1"
|
||||
android:orientation="vertical">
|
||||
|
||||
<Button
|
||||
|
Loading…
x
Reference in New Issue
Block a user