mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
Make the new changes only on TV UI
This commit is contained in:
parent
d9b50b29ff
commit
67db393968
6 changed files with 59 additions and 4 deletions
app/src/main
java/com/lagradost/cloudstream3/ui/player
res
|
@ -704,6 +704,7 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
|
|||
//player_media_route_button?.isClickable = !isGone
|
||||
playerGoBackHolder.isGone = isGone
|
||||
playerSourcesBtt.isGone = isGone
|
||||
playerSkipEpisode.isClickable = !isGone
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1222,6 +1223,7 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
|
|||
|
||||
// if nothing has loaded these buttons should not be visible
|
||||
playerBinding?.apply {
|
||||
playerSkipEpisode.isVisible = false
|
||||
playerGoForward.isVisible = false
|
||||
playerTracksBtt.isVisible = false
|
||||
playerSkipOp.isVisible = false
|
||||
|
@ -1459,6 +1461,11 @@ open class FullScreenPlayer : AbstractPlayerFragment() {
|
|||
skipOp()
|
||||
}
|
||||
|
||||
playerSkipEpisode.setOnClickListener {
|
||||
autoHide()
|
||||
player.handleEvent(CSPlayerEvent.NextEpisode)
|
||||
}
|
||||
|
||||
playerGoForward.setOnClickListener {
|
||||
autoHide()
|
||||
player.handleEvent(CSPlayerEvent.NextEpisode)
|
||||
|
|
9
app/src/main/res/drawable/ic_baseline_replay_24.xml
Normal file
9
app/src/main/res/drawable/ic_baseline_replay_24.xml
Normal file
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M12,5V2.21c0,-0.45 -0.54,-0.67 -0.85,-0.35l-3.8,3.79c-0.2,0.2 -0.2,0.51 0,0.71l3.79,3.79c0.32,0.31 0.86,0.09 0.86,-0.36V7c3.73,0 6.68,3.42 5.86,7.29 -0.47,2.27 -2.31,4.1 -4.57,4.57 -3.57,0.75 -6.75,-1.7 -7.23,-5.01 -0.07,-0.48 -0.49,-0.85 -0.98,-0.85 -0.6,0 -1.08,0.53 -1,1.13 0.62,4.39 4.8,7.64 9.53,6.72 3.12,-0.61 5.63,-3.12 6.24,-6.24C20.84,9.48 16.94,5 12,5z"
|
||||
android:fillColor="#e8eaed"/>
|
||||
</vector>
|
10
app/src/main/res/drawable/ic_baseline_skip_next_24_big.xml
Normal file
10
app/src/main/res/drawable/ic_baseline_skip_next_24_big.xml
Normal file
|
@ -0,0 +1,10 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M2.775,21.225 L15.844,12 2.775,2.775ZM18.15,2.775v18.45h3.075V2.775Z"
|
||||
android:strokeWidth="1.5375"
|
||||
android:fillColor="#e8eaed"/>
|
||||
</vector>
|
|
@ -0,0 +1,9 @@
|
|||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="24dp"
|
||||
android:height="24dp"
|
||||
android:viewportWidth="24"
|
||||
android:viewportHeight="24">
|
||||
<path
|
||||
android:pathData="M7.58,16.89l5.77,-4.07c0.56,-0.4 0.56,-1.24 0,-1.63L7.58,7.11C6.91,6.65 6,7.12 6,7.93v8.14c0,0.81 0.91,1.28 1.58,0.82zM16,7v10c0,0.55 0.45,1 1,1s1,-0.45 1,-1V7c0,-0.55 -0.45,-1 -1,-1s-1,0.45 -1,1z"
|
||||
android:fillColor="#e8eaed"/>
|
||||
</vector>
|
|
@ -193,7 +193,7 @@
|
|||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="40dp"
|
||||
android:src="@drawable/ic_baseline_restart_24"
|
||||
android:src="@drawable/ic_baseline_replay_24"
|
||||
app:tint="@android:color/white"
|
||||
android:background="@drawable/video_tap_button_always_white"
|
||||
android:clickable="true"
|
||||
|
@ -208,7 +208,7 @@
|
|||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="80dp"
|
||||
android:src="@drawable/ic_baseline_arrow_forward_24"
|
||||
android:src="@drawable/ic_baseline_skip_next_rounded_24"
|
||||
app:tint="@android:color/white"
|
||||
android:background="@drawable/video_tap_button_always_white"
|
||||
android:clickable="true"
|
||||
|
@ -661,6 +661,14 @@
|
|||
android:text="@string/video_skip_op"
|
||||
app:icon="@drawable/ic_baseline_fast_forward_24" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/player_skip_episode"
|
||||
style="@style/VideoButton"
|
||||
android:nextFocusLeft="@id/player_skip_op"
|
||||
android:nextFocusRight="@id/player_lock"
|
||||
android:text="@string/next_episode"
|
||||
app:icon="@drawable/ic_baseline_skip_next_24" />
|
||||
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</HorizontalScrollView>
|
||||
|
|
|
@ -314,7 +314,7 @@
|
|||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="40dp"
|
||||
android:src="@drawable/ic_baseline_restart_24"
|
||||
android:src="@drawable/ic_baseline_replay_24"
|
||||
app:tint="@android:color/white"
|
||||
android:background="@drawable/video_tap_button_always_white"
|
||||
android:clickable="true"
|
||||
|
@ -331,7 +331,7 @@
|
|||
android:layout_width="30dp"
|
||||
android:layout_height="30dp"
|
||||
android:layout_marginStart="80dp"
|
||||
android:src="@drawable/ic_baseline_arrow_forward_24"
|
||||
android:src="@drawable/ic_baseline_skip_next_rounded_24"
|
||||
app:tint="@android:color/white"
|
||||
android:background="@drawable/video_tap_button_always_white"
|
||||
android:clickable="true"
|
||||
|
@ -704,6 +704,18 @@
|
|||
android:text="@string/video_skip_op"
|
||||
app:icon="@drawable/ic_baseline_fast_forward_24" />
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/player_skip_episode"
|
||||
style="@style/VideoButtonTV"
|
||||
android:nextFocusLeft="@id/player_skip_op"
|
||||
android:nextFocusRight="@id/player_resize_btt"
|
||||
android:nextFocusUp="@id/player_pause_play"
|
||||
android:nextFocusDown="@id/player_resize_btt"
|
||||
android:text="@string/next_episode"
|
||||
app:icon="@drawable/ic_baseline_skip_next_24"
|
||||
android:visibility="gone"
|
||||
tools:visibility="visible"/>
|
||||
|
||||
<com.google.android.material.button.MaterialButton
|
||||
android:id="@+id/player_resize_btt"
|
||||
style="@style/VideoButtonTV"
|
||||
|
|
Loading…
Reference in a new issue