diff options
author | Alex Ning <chineseperson5@gmail.com> | 2020-11-09 09:01:53 +0000 |
---|---|---|
committer | Alex Ning <chineseperson5@gmail.com> | 2020-11-09 09:01:53 +0000 |
commit | 4de6887423f7ba499873b8e2a6984b1efd701cd2 (patch) | |
tree | 5547b01cd740d7b00458998382968049e4ef1e82 /app/src/main/res | |
parent | d37a386291c89e3740a762dbc99fe621fb8faac3 (diff) | |
download | infinity-for-reddit-4de6887423f7ba499873b8e2a6984b1efd701cd2.tar infinity-for-reddit-4de6887423f7ba499873b8e2a6984b1efd701cd2.tar.gz infinity-for-reddit-4de6887423f7ba499873b8e2a6984b1efd701cd2.tar.bz2 infinity-for-reddit-4de6887423f7ba499873b8e2a6984b1efd701cd2.tar.lz infinity-for-reddit-4de6887423f7ba499873b8e2a6984b1efd701cd2.tar.xz infinity-for-reddit-4de6887423f7ba499873b8e2a6984b1efd701cd2.tar.zst infinity-for-reddit-4de6887423f7ba499873b8e2a6984b1efd701cd2.zip |
Selecting swipe actions is avavilable.
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" |