mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
fixed bug with seek
This commit is contained in:
parent
1bf5281b04
commit
384e31343f
4 changed files with 38 additions and 48 deletions
|
@ -35,8 +35,8 @@ android {
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 30
|
targetSdkVersion 30
|
||||||
|
|
||||||
versionCode 38
|
versionCode 39
|
||||||
versionName "2.4.6"
|
versionName "2.4.7"
|
||||||
|
|
||||||
resValue "string", "app_version",
|
resValue "string", "app_version",
|
||||||
"${defaultConfig.versionName}${versionNameSuffix ?: ""}"
|
"${defaultConfig.versionName}${versionNameSuffix ?: ""}"
|
||||||
|
|
|
@ -305,7 +305,7 @@ class PlayerFragment : Fragment() {
|
||||||
fingerLeftScreen = false
|
fingerLeftScreen = false
|
||||||
|
|
||||||
if ((SystemClock.elapsedRealtime() - timestampLastClick) < doubleClickQualificationSpanInMillis) {
|
if ((SystemClock.elapsedRealtime() - timestampLastClick) < doubleClickQualificationSpanInMillis) {
|
||||||
if (event.rawX >= ctx.width / 2) {
|
if (event.rawX >= max(ctx.width, ctx.height) / 2) {
|
||||||
clicksRight++
|
clicksRight++
|
||||||
if (!ctx.isLocked && ctx.doubleTapEnabled) onDoubleClickRight(clicksRight)
|
if (!ctx.isLocked && ctx.doubleTapEnabled) onDoubleClickRight(clicksRight)
|
||||||
//if (!ctx.isShowing) onSingleClick()
|
//if (!ctx.isShowing) onSingleClick()
|
||||||
|
|
|
@ -366,7 +366,7 @@
|
||||||
android:textColor="?attr/textColor"
|
android:textColor="?attr/textColor"
|
||||||
android:foreground="@drawable/outline_drawable"
|
android:foreground="@drawable/outline_drawable"
|
||||||
android:paddingTop="5dp"
|
android:paddingTop="5dp"
|
||||||
android:paddingBottom="5dp"
|
android:paddingBottom="0dp"
|
||||||
android:nextFocusUp="@id/result_back"
|
android:nextFocusUp="@id/result_back"
|
||||||
android:nextFocusDown="@id/result_bookmark_button"
|
android:nextFocusDown="@id/result_bookmark_button"
|
||||||
|
|
||||||
|
@ -442,7 +442,6 @@
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"/>
|
android:layout_height="wrap_content"/>
|
||||||
|
|
||||||
|
|
||||||
<LinearLayout
|
<LinearLayout
|
||||||
android:layout_marginTop="5dp"
|
android:layout_marginTop="5dp"
|
||||||
android:orientation="vertical"
|
android:orientation="vertical"
|
||||||
|
@ -495,44 +494,6 @@
|
||||||
android:progress="0"
|
android:progress="0"
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
tools:visibility="visible"/>
|
tools:visibility="visible"/>
|
||||||
<!--
|
|
||||||
<androidx.constraintlayout.widget.ConstraintLayout
|
|
||||||
android:orientation="horizontal"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:layout_height="40dp">
|
|
||||||
<androidx.core.widget.ContentLoadingProgressBar
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
app:layout_constraintStart_toStartOf="parent"
|
|
||||||
app:layout_constraintEnd_toStartOf="@+id/result_movie_download"
|
|
||||||
android:layout_width="match_parent"
|
|
||||||
android:paddingEnd="40dp"
|
|
||||||
android:layout_height="40dp"
|
|
||||||
tools:progress="50"
|
|
||||||
android:id="@+id/result_movie_progress_downloaded"
|
|
||||||
android:indeterminate="false"
|
|
||||||
style="?android:attr/progressBarStyleHorizontal"
|
|
||||||
android:max="100"
|
|
||||||
android:layout_gravity="end|center_vertical"
|
|
||||||
android:progress="0"
|
|
||||||
android:visibility="visible"
|
|
||||||
tools:visibility="gone"
|
|
||||||
tools:ignore="RtlSymmetry"/>
|
|
||||||
<ImageView
|
|
||||||
app:layout_constraintTop_toTopOf="parent"
|
|
||||||
android:visibility="visible"
|
|
||||||
android:layout_height="40dp"
|
|
||||||
android:layout_width="40dp"
|
|
||||||
android:layout_columnWeight="1"
|
|
||||||
android:layout_gravity="end|center_vertical"
|
|
||||||
android:padding="2dp"
|
|
||||||
android:id="@+id/result_movie_download"
|
|
||||||
android:background="?selectableItemBackgroundBorderless"
|
|
||||||
android:src="@drawable/ic_baseline_play_arrow_24"
|
|
||||||
android:contentDescription="@string/download_descript"
|
|
||||||
app:layout_constraintBottom_toBottomOf="parent"
|
|
||||||
app:layout_constraintEnd_toEndOf="parent"/>
|
|
||||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
|
||||||
-->
|
|
||||||
<TextView
|
<TextView
|
||||||
android:id="@+id/result_movie_text_progress"
|
android:id="@+id/result_movie_text_progress"
|
||||||
android:layout_gravity="center_vertical"
|
android:layout_gravity="center_vertical"
|
||||||
|
@ -543,14 +504,43 @@
|
||||||
android:layout_height="match_parent">
|
android:layout_height="match_parent">
|
||||||
</TextView>
|
</TextView>
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
<!--<TextView
|
||||||
|
android:visibility="gone"
|
||||||
|
android:drawableLeft="@drawable/ic_baseline_play_arrow_24"
|
||||||
|
android:gravity="center_vertical"
|
||||||
|
android:textSize="20sp"
|
||||||
|
android:textColor="?attr/textColor"
|
||||||
|
android:text="More like this"
|
||||||
|
android:layout_width="wrap_content" android:layout_height="60dp">
|
||||||
|
</TextView>
|
||||||
<com.google.android.material.tabs.TabLayout
|
<com.google.android.material.tabs.TabLayout
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
android:layout_width="match_parent"
|
android:layout_width="match_parent"
|
||||||
android:layout_height="wrap_content"
|
android:layout_height="wrap_content"
|
||||||
|
app:tabTextColor="?attr/textColor"
|
||||||
|
android:foreground="@color/transparent"
|
||||||
|
android:backgroundTint="@color/transparent"
|
||||||
|
app:tabIndicatorGravity="top"
|
||||||
|
android:textAllCaps="false"
|
||||||
|
|
||||||
|
app:tabIconTint="?attr/textColor"
|
||||||
|
app:tabIndicatorColor="?attr/textColor"
|
||||||
android:id="@+id/result_tabs"
|
android:id="@+id/result_tabs"
|
||||||
app:tabGravity="start"
|
app:tabGravity="start">
|
||||||
android:elevation="0dp">
|
<com.google.android.material.tabs.TabItem
|
||||||
</com.google.android.material.tabs.TabLayout>
|
android:text="Episodes"
|
||||||
|
android:icon="@null"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
</com.google.android.material.tabs.TabItem>
|
||||||
|
<com.google.android.material.tabs.TabItem
|
||||||
|
android:text="Sync"
|
||||||
|
android:icon="@null"
|
||||||
|
android:layout_width="wrap_content"
|
||||||
|
android:layout_height="wrap_content">
|
||||||
|
|
||||||
|
</com.google.android.material.tabs.TabItem>
|
||||||
|
</com.google.android.material.tabs.TabLayout>-->
|
||||||
|
|
||||||
<com.lagradost.cloudstream3.ui.AutofitRecyclerView
|
<com.lagradost.cloudstream3.ui.AutofitRecyclerView
|
||||||
android:visibility="gone"
|
android:visibility="gone"
|
||||||
|
|
|
@ -202,7 +202,7 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<style name="Theme.Widget.Tabs" parent="Widget.MaterialComponents.TabLayout.Colored">
|
<style name="Theme.Widget.Tabs" parent="Widget.MaterialComponents.TabLayout.Colored">
|
||||||
<item name="tabGravity">center</item>
|
<!--<item name="tabGravity">center</item>
|
||||||
<item name="backgroundTint">@color/transparent</item>
|
<item name="backgroundTint">@color/transparent</item>
|
||||||
<item name="tabIndicator">@drawable/tab_selector</item>
|
<item name="tabIndicator">@drawable/tab_selector</item>
|
||||||
<item name="tabIndicatorColor">?attr/colorPrimary</item>
|
<item name="tabIndicatorColor">?attr/colorPrimary</item>
|
||||||
|
@ -211,7 +211,7 @@
|
||||||
<item name="tabIndicatorHeight">3dp</item>
|
<item name="tabIndicatorHeight">3dp</item>
|
||||||
<item name="tabInlineLabel">true</item>
|
<item name="tabInlineLabel">true</item>
|
||||||
<item name="tabMinWidth">75dp</item>
|
<item name="tabMinWidth">75dp</item>
|
||||||
<item name="tabMode">scrollable</item>
|
<item name="tabMode">scrollable</item>-->
|
||||||
</style>
|
</style>
|
||||||
<style name="AlertDialogCustom" parent="Theme.AppCompat.Dialog.Alert">
|
<style name="AlertDialogCustom" parent="Theme.AppCompat.Dialog.Alert">
|
||||||
<item name="android:windowFullscreen">true</item>
|
<item name="android:windowFullscreen">true</item>
|
||||||
|
|
Loading…
Reference in a new issue