Skip to content

Commit b56e858

Browse files
authored
fix (#2022)
1 parent 8dcb38a commit b56e858

File tree

2 files changed

+20
-9
lines changed

2 files changed

+20
-9
lines changed

app/src/main/java/com/lagradost/cloudstream3/ui/result/ResultFragmentPhone.kt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,7 @@ open class ResultFragmentPhone : FullScreenPlayer() {
594594
resultBinding?.apply {
595595
if (resume == null) {
596596
resultResumeParent.isVisible = false
597+
resultPlayParent.isVisible = true
597598
resultResumeProgressHolder.isVisible = false
598599
return@observeNullable
599600
}
@@ -609,8 +610,8 @@ open class ResultFragmentPhone : FullScreenPlayer() {
609610
resume.result.season
610611
)
611612
}
612-
if (resume.isMovie) {
613-
resultPlayMovie.isGone = true
613+
if (resume.isMovie){
614+
resultPlayParent.isGone = true
614615
resultResumeSeriesProgressText.isVisible = true
615616
resultResumeSeriesProgressText.setText(progress.progressLeft)
616617
}
@@ -704,6 +705,12 @@ open class ResultFragmentPhone : FullScreenPlayer() {
704705
)
705706
return@setOnLongClickListener true
706707
}
708+
resultResumeSeriesButton.setOnLongClickListener {
709+
viewModel.handleAction(
710+
EpisodeClickEvent(ACTION_SHOW_OPTIONS, ep)
711+
)
712+
return@setOnLongClickListener true
713+
}
707714
downloadButton.setDefaultClickListener(
708715
VideoDownloadHelper.DownloadEpisodeCached(
709716
name = ep.name,

app/src/main/res/layout/fragment_result.xml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,8 @@
618618
android:textAllCaps="false"
619619
android:maxLines="1"
620620
android:ellipsize="end"
621-
/>
621+
android:clickable="false"
622+
android:focusable="false" />
622623
<TextView
623624
android:id="@+id/result_resume_series_progress_text"
624625
style="@style/Widget.MaterialComponents.Button.TextButton"
@@ -634,7 +635,9 @@
634635
android:visibility="gone"
635636
tools:visibility="visible"
636637
android:maxLines="1"
637-
android:textAllCaps="false"/>
638+
android:textAllCaps="false"
639+
android:clickable="false"
640+
android:focusable="false"/>
638641
</LinearLayout>
639642
</FrameLayout>
640643
<LinearLayout
@@ -667,16 +670,18 @@
667670
android:layout_height="wrap_content"
668671
android:orientation="vertical"
669672
tools:visibility="visible">
670-
673+
<LinearLayout
674+
android:id="@+id/result_play_parent"
675+
android:layout_width="match_parent"
676+
android:layout_height="wrap_content"
677+
android:layout_marginBottom="10dp">
671678
<com.google.android.material.button.MaterialButton
672679
android:id="@+id/result_play_movie"
673680
style="@style/WhiteButton"
674681
android:layout_width="match_parent"
675-
676682
android:layout_gravity="center_vertical"
677683
android:layout_marginStart="0dp"
678684
android:layout_marginEnd="0dp"
679-
android:layout_marginBottom="10dp"
680685
android:nextFocusUp="@id/result_bookmark_Button"
681686
android:nextFocusDown="@id/result_download_movie"
682687
android:text="@string/play_movie_button"
@@ -686,8 +691,7 @@
686691
<requestFocus />
687692

688693
</com.google.android.material.button.MaterialButton>
689-
690-
694+
</LinearLayout>
691695
<!--<com.google.android.material.button.MaterialButton
692696
android:nextFocusUp="@id/result_play_movie"
693697
android:nextFocusDown="@id/result_season_button"

0 commit comments

Comments
 (0)