From 4580d1b8f7d7dad2600df1037a76b5599640498d Mon Sep 17 00:00:00 2001
From: LagradOst <11805592+LagradOst@users.noreply.github.com>
Date: Mon, 14 Feb 2022 22:12:06 +0100
Subject: [PATCH] sync prep
---
.../cloudstream3/ui/result/ResultFragment.kt | 5 +-
.../main/res/layout/fragment_result_swipe.xml | 117 +---------
app/src/main/res/layout/result_sync.xml | 220 ++++++++++++++++++
app/src/main/res/layout/subtitle_offset.xml | 2 +-
app/src/main/res/values/strings.xml | 2 +
app/src/main/res/values/styles.xml | 17 ++
6 files changed, 244 insertions(+), 119 deletions(-)
create mode 100644 app/src/main/res/layout/result_sync.xml
diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/result/ResultFragment.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/result/ResultFragment.kt
index 90a7ade9..05b08675 100644
--- a/app/src/main/java/com/lagradost/cloudstream3/ui/result/ResultFragment.kt
+++ b/app/src/main/java/com/lagradost/cloudstream3/ui/result/ResultFragment.kt
@@ -1096,7 +1096,7 @@ class ResultFragment : Fragment(), PanelsChildGestureRegionObserver.GestureRegio
}
getViewPos(resume.episodeId)?.let { viewPos ->
- if(viewPos.position > 30_000L || currentIsMovie == false) { // first 30s will not show for movies
+ if (viewPos.position > 30_000L || currentIsMovie == false) { // first 30s will not show for movies
result_resume_series_progress?.apply {
max = (viewPos.duration / 1000).toInt()
progress = (viewPos.position / 1000).toInt()
@@ -1511,7 +1511,8 @@ class ResultFragment : Fragment(), PanelsChildGestureRegionObserver.GestureRegio
result_download_movie?.setOnLongClickListener {
val card =
- currentEpisodes?.firstOrNull() ?: return@setOnLongClickListener false
+ currentEpisodes?.firstOrNull()
+ ?: return@setOnLongClickListener false
handleAction(EpisodeClickEvent(ACTION_DOWNLOAD_MIRROR, card))
return@setOnLongClickListener true
}
diff --git a/app/src/main/res/layout/fragment_result_swipe.xml b/app/src/main/res/layout/fragment_result_swipe.xml
index 141ec325..448e0d7b 100644
--- a/app/src/main/res/layout/fragment_result_swipe.xml
+++ b/app/src/main/res/layout/fragment_result_swipe.xml
@@ -136,122 +136,7 @@
android:layout_height="match_parent"
android:layout_gravity="start">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/main/res/layout/subtitle_offset.xml b/app/src/main/res/layout/subtitle_offset.xml
index 729df759..823a4cc8 100644
--- a/app/src/main/res/layout/subtitle_offset.xml
+++ b/app/src/main/res/layout/subtitle_offset.xml
@@ -43,7 +43,7 @@
android:inputType="numberSigned"
android:layout_width="0dp"
android:layout_height="wrap_content"
- android:autofillHints="@string/subtitle_offset_hint"
+ android:hint="@string/subtitle_offset_hint"
tools:ignore="LabelFor" />
Add account
Add tracking
Added %s
+ Sync
+
None
Normal
diff --git a/app/src/main/res/values/styles.xml b/app/src/main/res/values/styles.xml
index 8538feb5..eafa7629 100644
--- a/app/src/main/res/values/styles.xml
+++ b/app/src/main/res/values/styles.xml
@@ -17,6 +17,7 @@
- @style/AppTextViewStyle
- @style/AppButtonStyle
+ - @style/AppEditStyle
- @style/AppMaterialButtonStyle
- @style/PreferenceTheme
- @style/AppBottomSheetDialogTheme
@@ -228,6 +229,9 @@
+
+
+