diff options
author | saqura <saqura@saqura.xyz> | 2016-04-02 21:37:05 +0200 |
---|---|---|
committer | saqura <saqura@saqura.xyz> | 2016-04-02 21:37:05 +0200 |
commit | 65bb7d9911acfc03cb2ef786c857ebcc5fb45677 (patch) | |
tree | a2ff54d53635efb4dd247161e2977675b5ac5054 /core/src/main/res | |
parent | 13d0a3570b3634da777a791e89008ad7cef5bd29 (diff) | |
download | AntennaPod-65bb7d9911acfc03cb2ef786c857ebcc5fb45677.zip |
Add option to pick lock screen playback buttons
This adds the option to pick which playback buttons to prioritise on the
notification. This allows choosing the playback buttons on the lock
screen. The default playback buttons have not changed and are still set
to play/pause (this is always displayed) and skip.
Note: This commit raises the minimum sdk version from 10 to 11!
Diffstat (limited to 'core/src/main/res')
-rw-r--r-- | core/src/main/res/values/arrays.xml | 14 | ||||
-rw-r--r-- | core/src/main/res/values/strings.xml | 2 |
2 files changed, 16 insertions, 0 deletions
diff --git a/core/src/main/res/values/arrays.xml b/core/src/main/res/values/arrays.xml index 80da376be..ea2bb7a52 100644 --- a/core/src/main/res/values/arrays.xml +++ b/core/src/main/res/values/arrays.xml @@ -212,4 +212,18 @@ <item>500</item> </string-array> + <string-array name="prioritised_notification_buttons_options"> + <item>@string/rewind_label</item> + <item>@string/fast_forward_label</item> + <item>@string/skip_episode_label</item> + </string-array> + <string-array name="prioritised_notification_buttons_values"> + <item>0</item> + <item>1</item> + <item>2</item> + </string-array> + <string-array name="prioritised_notification_buttons_default_values"> + <item>2</item> + </string-array> + </resources> diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index 5391435b7..b2f4e11f9 100644 --- a/core/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml @@ -384,6 +384,8 @@ <string name="pref_expandNotify_sum">Always expand the notification to show playback buttons.</string> <string name="pref_persistNotify_title">Persistent Playback Controls</string> <string name="pref_persistNotify_sum">Keep notification and lockscreen controls when playback is paused.</string> + <string name="pref_prioritised_notification_buttons_title">Prioritise Notification Buttons</string> + <string name="pref_prioritised_notification_buttons_sum">Change the playback buttons on the lock screen notification.</string> <string name="pref_show_subscriptions_in_drawer_title">Show Subscriptions</string> <string name="pref_show_subscriptions_in_drawer_sum">Show subscription list directly in navigation drawer</string> <string name="pref_lockscreen_background_title">Set Lockscreen Background</string> |