aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-09-25 15:38:31 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-09-25 15:38:31 +0000
commit428734bddeb7eea9b63d6d8e965d27beb9e7bc93 (patch)
tree42adc7bd2d7573b1ae9a0294b7b2a5148cb52792 /app/src/main/res
parent878328c01c309c3cd9b79eb832c6070df4ef2afd (diff)
downloadinfinity-for-reddit-428734bddeb7eea9b63d6d8e965d27beb9e7bc93.tar
infinity-for-reddit-428734bddeb7eea9b63d6d8e965d27beb9e7bc93.tar.gz
infinity-for-reddit-428734bddeb7eea9b63d6d8e965d27beb9e7bc93.tar.bz2
infinity-for-reddit-428734bddeb7eea9b63d6d8e965d27beb9e7bc93.tar.lz
infinity-for-reddit-428734bddeb7eea9b63d6d8e965d27beb9e7bc93.tar.xz
infinity-for-reddit-428734bddeb7eea9b63d6d8e965d27beb9e7bc93.tar.zst
infinity-for-reddit-428734bddeb7eea9b63d6d8e965d27beb9e7bc93.zip
Setting swipe action threshold is available.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/values/arrays.xml11
-rw-r--r--app/src/main/res/values/strings.xml1
-rw-r--r--app/src/main/res/xml/swipe_action_preferences.xml8
3 files changed, 20 insertions, 0 deletions
diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml
index f0685277..41eedb8e 100644
--- a/app/src/main/res/values/arrays.xml
+++ b/app/src/main/res/values/arrays.xml
@@ -259,4 +259,15 @@
<item>Search</item>
</string-array>
+ <string-array name="settings_swipe_action_threshold">
+ <item>0.1</item>
+ <item>0.2</item>
+ <item>0.3</item>
+ <item>0.4</item>
+ <item>0.5</item>
+ <item>0.6</item>
+ <item>0.7</item>
+ <item>0.8</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 4c209afb..0e83c1d8 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -471,6 +471,7 @@
<string name="settings_vibrate_when_action_triggered_title">Vibrate the phone when the action is triggered</string>
<string name="settings_disable_swiping_between_tabs_title">Disable Swiping Between Tabs</string>
<string name="settings_enable_swipe_action_title">Enable Swipe Action</string>
+ <string name="settings_swipe_action_threshold">Threshold</string>
<string name="settings_pull_to_refresh_title">Pull to Refresh</string>
<string name="settings_security_title">Security</string>
<string name="settings_require_authentication_to_go_to_account_section_in_navigation_drawer_title">Require Authentication to Go to Account Section in Navigation Drawer</string>
diff --git a/app/src/main/res/xml/swipe_action_preferences.xml b/app/src/main/res/xml/swipe_action_preferences.xml
index 423035a7..60a34c1b 100644
--- a/app/src/main/res/xml/swipe_action_preferences.xml
+++ b/app/src/main/res/xml/swipe_action_preferences.xml
@@ -16,4 +16,12 @@
app:key="disable_swiping_between_tabs"
app:title="@string/settings_disable_swiping_between_tabs_title" />
+ <ListPreference
+ app:defaultValue="0.3"
+ app:entries="@array/settings_swipe_action_threshold"
+ app:entryValues="@array/settings_swipe_action_threshold"
+ app:key="swipe_action_threshold"
+ app:title="@string/settings_swipe_action_threshold"
+ app:useSimpleSummaryProvider="true" />
+
</PreferenceScreen> \ No newline at end of file