resume progress for movies fix

This commit is contained in:
LagradOst 2022-02-06 16:16:11 +01:00
parent 14da44f1f4
commit 7ee501996e
3 changed files with 28 additions and 0 deletions

View file

@ -1509,6 +1509,13 @@ class ResultFragment : Fragment(), PanelsChildGestureRegionObserver.GestureRegio
} }
} }
result_download_movie?.setOnLongClickListener {
val card =
currentEpisodes?.firstOrNull() ?: return@setOnLongClickListener false
handleAction(EpisodeClickEvent(ACTION_DOWNLOAD_MIRROR, card))
return@setOnLongClickListener true
}
/*downloadButton?.setUpMaterialButton( /*downloadButton?.setUpMaterialButton(
file?.fileLength, file?.fileLength,
file?.totalBytes, file?.totalBytes,

View file

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="270"
android:toDegrees="270">
<shape android:shape="oval" />
<shape
android:innerRadiusRatio="100"
android:shape="ring"
android:thickness="11dp"
android:useLevel="true"><!-- this line fixes the issue for lollipop api 21 -->
<gradient
android:angle="0"
android:endColor="?attr/white"
android:startColor="?attr/white"
android:type="sweep"
android:useLevel="false" />
</shape>
</rotate>

View file

@ -670,6 +670,8 @@
</LinearLayout> </LinearLayout>
<LinearLayout <LinearLayout
tools:visibility="visible"
android:visibility="gone"
android:paddingTop="10dp" android:paddingTop="10dp"
android:id="@+id/result_resume_progress_holder" android:id="@+id/result_resume_progress_holder"
android:orientation="horizontal" android:orientation="horizontal"