mirror of
https://github.com/AntennaPod/AntennaPod.git
synced 2025-02-02 11:46:55 +01:00
Use ff/rew as default notification buttons
This commit is contained in:
parent
66250bebea
commit
a93085a58d
@ -126,8 +126,9 @@ public class PreferencesTest {
|
|||||||
clickPreference(R.string.user_interface_label);
|
clickPreference(R.string.user_interface_label);
|
||||||
String[] buttons = res.getStringArray(R.array.compact_notification_buttons_options);
|
String[] buttons = res.getStringArray(R.array.compact_notification_buttons_options);
|
||||||
clickPreference(R.string.pref_compact_notification_buttons_title);
|
clickPreference(R.string.pref_compact_notification_buttons_title);
|
||||||
// First uncheck checkbox
|
// First uncheck checkboxes
|
||||||
onView(withText(buttons[2])).perform(click());
|
onView(withText(buttons[0])).perform(click());
|
||||||
|
onView(withText(buttons[1])).perform(click());
|
||||||
|
|
||||||
// Now try to check all checkboxes
|
// Now try to check all checkboxes
|
||||||
onView(withText(buttons[0])).perform(click());
|
onView(withText(buttons[0])).perform(click());
|
||||||
|
@ -207,7 +207,7 @@ public class UserPreferences {
|
|||||||
public static List<Integer> getCompactNotificationButtons() {
|
public static List<Integer> getCompactNotificationButtons() {
|
||||||
String[] buttons = TextUtils.split(
|
String[] buttons = TextUtils.split(
|
||||||
prefs.getString(PREF_COMPACT_NOTIFICATION_BUTTONS,
|
prefs.getString(PREF_COMPACT_NOTIFICATION_BUTTONS,
|
||||||
String.valueOf(NOTIFICATION_BUTTON_SKIP)),
|
NOTIFICATION_BUTTON_REWIND + "," + NOTIFICATION_BUTTON_FAST_FORWARD),
|
||||||
",");
|
",");
|
||||||
List<Integer> notificationButtons = new ArrayList<>();
|
List<Integer> notificationButtons = new ArrayList<>();
|
||||||
for (String button : buttons) {
|
for (String button : buttons) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user