diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/player/AbstractPlayerFragment.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/player/AbstractPlayerFragment.kt index 21047db3..52f0b760 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/player/AbstractPlayerFragment.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/player/AbstractPlayerFragment.kt @@ -184,7 +184,7 @@ abstract class AbstractPlayerFragment( isInPIPMode = isInPictureInPictureMode if (isInPictureInPictureMode) { // Hide the full-screen UI (controls, etc.) while in picture-in-picture mode. - player_holder?.alpha = 0f + piphide?.isVisible = false pipReceiver = object : BroadcastReceiver() { override fun onReceive( context: Context, @@ -212,7 +212,7 @@ abstract class AbstractPlayerFragment( updateIsPlaying(Pair(isPlayingValue, isPlayingValue)) } else { // Restore the full-screen UI. - player_holder?.alpha = 1f + piphide?.isVisible = true exitedPipMode() pipReceiver?.let { activity?.unregisterReceiver(it) diff --git a/app/src/main/res/layout/player_custom_layout.xml b/app/src/main/res/layout/player_custom_layout.xml index 683a1077..54f92d1f 100644 --- a/app/src/main/res/layout/player_custom_layout.xml +++ b/app/src/main/res/layout/player_custom_layout.xml @@ -8,17 +8,6 @@ android:screenOrientation="landscape" tools:orientation="vertical"> - - - - - - - - - - - - - - - + android:layout_height="match_parent" + android:background="@color/black_overlay" /> - + - - - - - - - - - - - - - - - - - - - - - - - - - - + android:gravity="center" + android:shadowColor="@android:color/black" + android:shadowRadius="10.0" + android:textColor="@android:color/white" + android:textSize="30sp" + tools:text="+100" /> + - - android:nextFocusRight="@id/exo_ffwd" - - android:nextFocusUp="@id/player_go_back" - android:nextFocusDown="@id/player_lock" - - android:src="@drawable/netflix_pause" - app:tint="@color/white" - tools:ignore="ContentDescription" /> - + + android:layout_height="match_parent"> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + --> + + + + + + diff --git a/app/src/main/res/layout/player_custom_layout_tv.xml b/app/src/main/res/layout/player_custom_layout_tv.xml index 405b606f..62b359b6 100644 --- a/app/src/main/res/layout/player_custom_layout_tv.xml +++ b/app/src/main/res/layout/player_custom_layout_tv.xml @@ -9,8 +9,9 @@ android:tag="television" tools:orientation="vertical"> + @@ -19,359 +20,365 @@ android:layout_width="match_parent" android:layout_height="match_parent" android:background="@drawable/player_gradient_tv" /> - - + + + + - - - + + + + + + + + + + + - ---> - - - - - - - - - - - - - + + android:layout_gravity="center" - + android:clickable="false" + android:focusable="false" + android:focusableInTouchMode="false" - - - - - - - - - - - - - - - - - - - - - - - - - + android:indeterminate="true" + android:visibility="gone" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintLeft_toLeftOf="parent" + app:layout_constraintRight_toRightOf="parent" + app:layout_constraintTop_toTopOf="parent" + tools:visibility="visible" /> + android:layout_gravity="bottom" + android:layout_marginBottom="20dp" + android:gravity="center" + android:orientation="horizontal" + android:paddingTop="4dp" + android:visibility="gone" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent"> - - - - + + + + + + + - - - + android:layout_height="0dp" + android:tintMode="src_in" + app:tint="?attr/colorPrimaryDark" + tools:ignore="ContentDescription" /> + - + android:layout_marginStart="64dp" + android:layout_marginEnd="64dp" + android:layout_marginBottom="10dp" + android:gravity="center_vertical" + android:orientation="vertical" + app:layout_constraintBottom_toBottomOf="parent" + app:layout_constraintEnd_toEndOf="parent" + app:layout_constraintStart_toStartOf="parent"> - + + android:src="@drawable/netflix_pause" + app:tint="@color/player_button_tv" + tools:ignore="ContentDescription" /> - + + - android:visibility="gone" - app:icon="@drawable/ic_outline_subtitles_24" - tools:visibility="visible" /> + + - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + +