diff options
author | Kevin T. Berstene <kberstene@gmail.com> | 2017-06-09 18:05:02 -0400 |
---|---|---|
committer | Kevin T. Berstene <kberstene@gmail.com> | 2017-06-09 18:05:02 -0400 |
commit | b55f7c484c97f3a209e8c3631a7d466259210a71 (patch) | |
tree | ffa80d91c9e463e5d86617e13b44b6e373c4f0c9 /app/src/main/res | |
parent | cb697849c7d9720ed6da48ad8f1b6dafc1528e7f (diff) | |
download | dsub-b55f7c484c97f3a209e8c3631a7d466259210a71.tar.gz dsub-b55f7c484c97f3a209e8c3631a7d466259210a71.tar.bz2 dsub-b55f7c484c97f3a209e8c3631a7d466259210a71.zip |
Added preference for rewind and fast forward intervals
Keeping the default at 10s and 30s respectively, added preference options under Playback to allow user to change how far rewind and fast forward jump.
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/values/strings.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/xml/settings_playback.xml | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index b54e4ff2..4357b580 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -491,6 +491,8 @@ <string name="settings.casting_cache_summary">Cache currently playing songs while casting</string> <string name="settings.casting.dlna_casting_enabled">DLNA Enabled</string> <string name="settings.casting.dlna_casting_enabled.summary">If you are having battery drain problems on Android 7.0 try turning this off</string> + <string name="settings.rewind_interval">Rewind Interval</string> + <string name="settings.fastforward_interval">Fast Forward Interval</string> <string name="shuffle.title">Shuffle By</string> <string name="shuffle.startYear">Start Year:</string> diff --git a/app/src/main/res/xml/settings_playback.xml b/app/src/main/res/xml/settings_playback.xml index da31d071..edaf3013 100644 --- a/app/src/main/res/xml/settings_playback.xml +++ b/app/src/main/res/xml/settings_playback.xml @@ -52,6 +52,20 @@ android:defaultValue="all" android:entryValues="@array/songPressActionValues" android:entries="@array/songPressActionNames"/> + + <github.daneren2005.dsub.view.SeekBarPreference + android:title="@string/settings.rewind_interval" + android:key="rewindInterval" + android:defaultValue="10" + android:dialogLayout="@layout/seekbar_preference" + myns:max="60"/> + + <github.daneren2005.dsub.view.SeekBarPreference + android:title="@string/settings.fastforward_interval" + android:key="fastforwardInterval" + android:defaultValue="30" + android:dialogLayout="@layout/seekbar_preference" + myns:max="60"/> </PreferenceCategory> <PreferenceCategory |