diff options
Diffstat (limited to 'app/src/main/res')
-rw-r--r-- | app/src/main/res/values/arrays.xml | 10 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 2 | ||||
-rw-r--r-- | app/src/main/res/xml/swipe_action_preferences.xml | 16 |
3 files changed, 28 insertions, 0 deletions
diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml index c26ce4f4..767e2fb9 100644 --- a/app/src/main/res/values/arrays.xml +++ b/app/src/main/res/values/arrays.xml @@ -285,4 +285,14 @@ <item>2</item> </string-array> + <string-array name="settings_swipe_actions"> + <item>Upvote</item> + <item>Downvote</item> + </string-array> + + <string-array name="settings_swipe_actions_values"> + <item>0</item> + <item>1</item> + </string-array> + </resources>
\ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index bf0a7866..19768479 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -504,6 +504,8 @@ <string name="settings_credits_ufo_capturing_animation_title">UFO Capturing Animation</string> <string name="settings_hide_subreddit_description_title">Hide Subreddit Description</string> <string name="settings_disable_image_preview_title">Disable Image Preview in Data Saving Mode</string> + <string name="settings_swipe_action_swipe_left_title">Swipe Left</string> + <string name="settings_swipe_action_swipe_right_title">Swipe Right</string> <string name="no_link_available">Cannot get the link</string> diff --git a/app/src/main/res/xml/swipe_action_preferences.xml b/app/src/main/res/xml/swipe_action_preferences.xml index 60a34c1b..36326765 100644 --- a/app/src/main/res/xml/swipe_action_preferences.xml +++ b/app/src/main/res/xml/swipe_action_preferences.xml @@ -6,6 +6,22 @@ app:key="enable_swipe_action" app:title="@string/settings_enable_swipe_action_title" /> + <ListPreference + app:defaultValue="0" + app:entries="@array/settings_swipe_actions" + app:entryValues="@array/settings_swipe_actions_values" + app:key="swipe_left_action" + app:title="@string/settings_swipe_action_swipe_left_title" + app:useSimpleSummaryProvider="true" /> + + <ListPreference + app:defaultValue="1" + app:entries="@array/settings_swipe_actions" + app:entryValues="@array/settings_swipe_actions_values" + app:key="swipe_right_action" + app:title="@string/settings_swipe_action_swipe_right_title" + app:useSimpleSummaryProvider="true" /> + <SwitchPreference app:defaultValue="true" app:key="vibrate_when_action_triggered" |