diff --git a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt index 8ff421e77..0c7c4d94c 100644 --- a/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/fragments/PlayerFragment.kt @@ -350,7 +350,6 @@ class PlayerFragment : Fragment() { "ratio" -> { val videoSize = exoPlayer.videoSize // probably a youtube shorts video - Log.e(TAG, videoSize.height.toString() + " " + videoSize.width.toString()) if (videoSize.height > videoSize.width) ActivityInfo.SCREEN_ORIENTATION_USER_PORTRAIT // a video with normal aspect ratio else ActivityInfo.SCREEN_ORIENTATION_USER_LANDSCAPE @@ -989,7 +988,6 @@ class PlayerFragment : Fragment() { // check whether the chapter start is greater than the current player position if (it.start!! * 1000 >= currentPosition) chapterName = it.title } - Log.e(TAG, chapterName.toString()) // change the chapter name textView text to the chapterName if (chapterName != null && chapterName != playerBinding.chapterName.text) { playerBinding.chapterName.text = chapterName diff --git a/app/src/main/res/layout/exo_styled_player_control_view.xml b/app/src/main/res/layout/exo_styled_player_control_view.xml index 124876fdd..95ff00180 100644 --- a/app/src/main/res/layout/exo_styled_player_control_view.xml +++ b/app/src/main/res/layout/exo_styled_player_control_view.xml @@ -106,20 +106,18 @@ - + android:orientation="vertical"> + android:layout_height="wrap_content" + android:layout_gravity="center" + android:layout_marginLeft="5dp"> + android:layout_gravity="center" + android:layout_marginStart="12dp" + android:layout_weight="1" + android:visibility="invisible"> + android:textColor="@android:color/white" /> - + - + - + - + - + - + @@ -220,7 +218,7 @@ - +