mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 07:50:31 +05:30
commit
e2b1f24f94
@ -1544,13 +1544,13 @@ class PlayerFragment : BaseFragment() {
|
|||||||
override fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean) {
|
override fun onPictureInPictureModeChanged(isInPictureInPictureMode: Boolean) {
|
||||||
super.onPictureInPictureModeChanged(isInPictureInPictureMode)
|
super.onPictureInPictureModeChanged(isInPictureInPictureMode)
|
||||||
if (isInPictureInPictureMode) {
|
if (isInPictureInPictureMode) {
|
||||||
|
// set portrait mode
|
||||||
|
unsetFullscreen()
|
||||||
|
|
||||||
// hide and disable exoPlayer controls
|
// hide and disable exoPlayer controls
|
||||||
exoPlayerView.hideController()
|
exoPlayerView.hideController()
|
||||||
exoPlayerView.useController = false
|
exoPlayerView.useController = false
|
||||||
|
|
||||||
// set portrait mode
|
|
||||||
unsetFullscreen()
|
|
||||||
|
|
||||||
with(binding.playerMotionLayout) {
|
with(binding.playerMotionLayout) {
|
||||||
getConstraintSet(R.id.start).constrainHeight(R.id.player, -1)
|
getConstraintSet(R.id.start).constrainHeight(R.id.player, -1)
|
||||||
enableTransition(R.id.yt_transition, false)
|
enableTransition(R.id.yt_transition, false)
|
||||||
|
@ -183,13 +183,11 @@
|
|||||||
<TextView
|
<TextView
|
||||||
style="@style/TimeString"
|
style="@style/TimeString"
|
||||||
android:text=" • "
|
android:text=" • "
|
||||||
android:textColor="#B3FFFFFF"
|
|
||||||
tools:ignore="HardcodedText" />
|
tools:ignore="HardcodedText" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@id/exo_duration"
|
android:id="@id/exo_duration"
|
||||||
style="@style/TimeString"
|
style="@style/TimeString"
|
||||||
android:textColor="#B3FFFFFF"
|
|
||||||
tools:text="12:15" />
|
tools:text="12:15" />
|
||||||
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
@ -204,11 +202,14 @@
|
|||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/liveDiff"
|
android:id="@+id/liveDiff"
|
||||||
style="@style/TimeString" />
|
style="@style/TimeString"
|
||||||
|
tools:text="05:10" />
|
||||||
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/liveSeparator"
|
android:id="@+id/liveSeparator"
|
||||||
style="@style/TimeString"
|
style="@style/TimeString"
|
||||||
|
android:layout_marginHorizontal="5dp"
|
||||||
|
android:paddingHorizontal="0dp"
|
||||||
android:text=" • "
|
android:text=" • "
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
tools:ignore="HardcodedText" />
|
tools:ignore="HardcodedText" />
|
||||||
|
Loading…
x
Reference in New Issue
Block a user