diff --git a/app/src/main/java/com/github/libretube/constants/PreferenceRanges.kt b/app/src/main/java/com/github/libretube/constants/PreferenceRanges.kt index a82e623d3..abffb31d5 100644 --- a/app/src/main/java/com/github/libretube/constants/PreferenceRanges.kt +++ b/app/src/main/java/com/github/libretube/constants/PreferenceRanges.kt @@ -12,4 +12,11 @@ object PreferenceRanges { 0.25f, 1.0f ) + + val seekIncrement = SliderRange( + 5f, + 60f, + 5f, + 10f + ) } diff --git a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt index 8ab7c5a85..1a0434cd3 100644 --- a/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt +++ b/app/src/main/java/com/github/libretube/ui/fragments/PlayerFragment.kt @@ -51,8 +51,8 @@ import com.github.libretube.extensions.formatShort import com.github.libretube.extensions.hideKeyboard import com.github.libretube.extensions.query import com.github.libretube.extensions.toID -import com.github.libretube.models.interfaces.PlayerOptionsInterface import com.github.libretube.models.PlayerViewModel +import com.github.libretube.models.interfaces.PlayerOptionsInterface import com.github.libretube.services.BackgroundMode import com.github.libretube.services.DownloadService import com.github.libretube.ui.activities.MainActivity diff --git a/app/src/main/java/com/github/libretube/ui/views/SliderPreference.kt b/app/src/main/java/com/github/libretube/ui/views/SliderPreference.kt index bf932ec51..c965d04af 100644 --- a/app/src/main/java/com/github/libretube/ui/views/SliderPreference.kt +++ b/app/src/main/java/com/github/libretube/ui/views/SliderPreference.kt @@ -31,6 +31,7 @@ class SliderPreference( val range = when (key) { PreferenceKeys.PLAYBACK_SPEED -> PreferenceRanges.playbackSpeed PreferenceKeys.BACKGROUND_PLAYBACK_SPEED -> PreferenceRanges.playbackSpeed + PreferenceKeys.SEEK_INCREMENT -> PreferenceRanges.seekIncrement else -> null } diff --git a/app/src/main/res/values/array.xml b/app/src/main/res/values/array.xml index 423fc84a2..2a07214b9 100644 --- a/app/src/main/res/values/array.xml +++ b/app/src/main/res/values/array.xml @@ -263,19 +263,6 @@ mpeg - - 5s - 10s - 20s - 30s - - - 5 - 10 - 20 - 30 - - @string/aspect_ratio @string/auto_rotation diff --git a/app/src/main/res/xml/player_settings.xml b/app/src/main/res/xml/player_settings.xml index 49105aaa2..0777d740e 100644 --- a/app/src/main/res/xml/player_settings.xml +++ b/app/src/main/res/xml/player_settings.xml @@ -10,14 +10,11 @@ app:key="playback_speed" app:title="@string/playback_speed" /> - + app:title="@string/seek_increment" />