summaryrefslogtreecommitdiff
path: root/core/src/main/res
diff options
context:
space:
mode:
authorsaqura <saqura@saqura.xyz>2016-04-03 20:22:03 +0200
committersaqura <saqura@saqura.xyz>2016-04-03 20:22:03 +0200
commite3408565dcc15cd97548b664773bc684dca4edeb (patch)
treed93433fa30434843a78fa41e30506772bbeb5b78 /core/src/main/res
parente215e162ad6c833ad3d3c5953e35e294eea8f25d (diff)
downloadAntennaPod-e3408565dcc15cd97548b664773bc684dca4edeb.zip
Update compact notification buttons dialog
The preference dialog to select which buttons are shown in compact notifications now provides feedback via a snackbar. The internal preference storage handling has been cleaned up. A testcase for the dialog has been added.
Diffstat (limited to 'core/src/main/res')
-rw-r--r--core/src/main/res/values/arrays.xml11
-rw-r--r--core/src/main/res/values/strings.xml8
2 files changed, 5 insertions, 14 deletions
diff --git a/core/src/main/res/values/arrays.xml b/core/src/main/res/values/arrays.xml
index 04e0d97cd..66a033b57 100644
--- a/core/src/main/res/values/arrays.xml
+++ b/core/src/main/res/values/arrays.xml
@@ -212,18 +212,9 @@
<item>500</item>
</string-array>
- <string-array name="notification_buttons_options">
+ <string-array name="compact_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="notification_buttons_values">
- <item>rewind</item>
- <item>fastforward</item>
- <item>skip</item>
- </string-array>
- <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 6edc8b32b..4d9f5d26e 100644
--- a/core/src/main/res/values/strings.xml
+++ b/core/src/main/res/values/strings.xml
@@ -384,10 +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_notification_buttons_title">Select Notification Buttons</string>
- <string name="pref_notification_buttons_sum">Change the playback buttons on the lock screen notification. The play/pause button is always included.</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_compact_notification_buttons_title">Set Lockscreen Buttons</string>
+ <string name="pref_compact_notification_buttons_sum">Change the playback buttons on the lockscreen. The play/pause button is always included.</string>
+ <string name="pref_compact_notification_buttons_dialog_title">Select a maximum of %1$d items</string>
+ <string name="pref_compact_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>