From 550364906d8755292fb2b2c80b6ac10f89ad6ffc Mon Sep 17 00:00:00 2001
From: Xiang Rong Lin <41164160+XiangRongLin@users.noreply.github.com>
Date: Mon, 21 Oct 2019 15:40:33 +0200
Subject: [PATCH] Add new preference for seek duration.
Add new ListPreference under settings/ video & audio for the duration of a seek.
With options for 5, 10, 15, 20, 25, 30 seconds.
---
app/src/main/res/values/settings_keys.xml | 19 +++++++++++++++++++
app/src/main/res/values/strings.xml | 1 +
app/src/main/res/xml/video_audio_settings.xml | 9 +++++++++
3 files changed, 29 insertions(+)
diff --git a/app/src/main/res/values/settings_keys.xml b/app/src/main/res/values/settings_keys.xml
index 8dcc2ce31..bd924dbdf 100644
--- a/app/src/main/res/values/settings_keys.xml
+++ b/app/src/main/res/values/settings_keys.xml
@@ -28,6 +28,25 @@
screen_brightness_key
screen_brightness_timestamp_key
+ seek_duration
+ 10000
+
+ - 5 seconds
+ - 10 seconds
+ - 15 seconds
+ - 20 seconds
+ - 25 seconds
+ - 30 seconds
+
+
+ - 5000
+ - 10000
+ - 15000
+ - 20000
+ - 25000
+ - 30000
+
+
minimize_on_exit_key
@string/minimize_on_exit_none_key
minimize_on_exit_none_key
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 2cdf139df..6cf445b08 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -70,6 +70,7 @@
Remember last size and position of popup
Use fast inexact seek
Inexact seek allows the player to seek to positions faster with reduced precision
+ Seek duration
Load thumbnails
Show comments
Disable to stop showing comments
diff --git a/app/src/main/res/xml/video_audio_settings.xml b/app/src/main/res/xml/video_audio_settings.xml
index 4e1b1f8b2..484457ceb 100644
--- a/app/src/main/res/xml/video_audio_settings.xml
+++ b/app/src/main/res/xml/video_audio_settings.xml
@@ -146,5 +146,14 @@
android:key="@string/use_inexact_seek_key"
android:summary="@string/use_inexact_seek_summary"
android:title="@string/use_inexact_seek_title"/>
+
+