diff options
author | saqura <saqura@saqura.xyz> | 2016-04-03 00:32:55 +0200 |
---|---|---|
committer | saqura <saqura@saqura.xyz> | 2016-04-03 00:37:49 +0200 |
commit | 4d47ba640550714968fbb4e5c07ab913474db6c0 (patch) | |
tree | decea30e7c1129ad641149a85fac375942dd2567 /core/src/main/res | |
parent | 65bb7d9911acfc03cb2ef786c857ebcc5fb45677 (diff) | |
download | AntennaPod-4d47ba640550714968fbb4e5c07ab913474db6c0.zip |
Add dialog to choose lock screen playback buttons
This adds a dialog to choose the playback buttons on the lock screen
notification. It only allows selecting a maximum of two values, because
the lock screen notification can only display up to 3 buttons and the
play/pause button is always included. It defaults to additionally show
the skip button.
The minimum sdk has been changed back to 10.
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 | 6 |
2 files changed, 11 insertions, 9 deletions
diff --git a/core/src/main/res/values/arrays.xml b/core/src/main/res/values/arrays.xml index ea2bb7a52..04e0d97cd 100644 --- a/core/src/main/res/values/arrays.xml +++ b/core/src/main/res/values/arrays.xml @@ -212,18 +212,18 @@ <item>500</item> </string-array> - <string-array name="prioritised_notification_buttons_options"> + <string-array name="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 name="notification_buttons_values"> + <item>rewind</item> + <item>fastforward</item> + <item>skip</item> </string-array> - <string-array name="prioritised_notification_buttons_default_values"> - <item>2</item> + <string-array name="notification_buttons_default_values"> + <item>skip</item> </string-array> </resources> diff --git a/core/src/main/res/values/strings.xml b/core/src/main/res/values/strings.xml index b2f4e11f9..25da5ec1d 100644 --- a/core/src/main/res/values/strings.xml +++ b/core/src/main/res/values/strings.xml @@ -384,8 +384,10 @@ <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_notification_buttons_title">Select Notification Buttons</string> + <string name="pref_notification_buttons_sum">Change the playback buttons on the lock screen notification.</string> + <string name="pref_notification_buttons_dialog_title">Select a maximum of %1$d items</string> + <string name="pref_notification_buttons_dialog_error">You can only select a maximum of %1$d items.</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> |