aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-09-15 15:58:17 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-09-15 15:58:17 +0000
commitef514a85c703464134934012b051979fa049a326 (patch)
tree2939ee01ea2bd1c1f983d22ad9d354723d193d46 /app/src/main/res
parent9444599f4b4db7f41abc8f80c1826467e3cd402a (diff)
downloadinfinity-for-reddit-ef514a85c703464134934012b051979fa049a326.tar
infinity-for-reddit-ef514a85c703464134934012b051979fa049a326.tar.gz
infinity-for-reddit-ef514a85c703464134934012b051979fa049a326.tar.bz2
infinity-for-reddit-ef514a85c703464134934012b051979fa049a326.tar.lz
infinity-for-reddit-ef514a85c703464134934012b051979fa049a326.tar.xz
infinity-for-reddit-ef514a85c703464134934012b051979fa049a326.tar.zst
infinity-for-reddit-ef514a85c703464134934012b051979fa049a326.zip
Add an option to disable pull to refresh.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/values/strings.xml1
-rw-r--r--app/src/main/res/xml/gestures_and_buttons_preference.xml5
2 files changed, 6 insertions, 0 deletions
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index b881e2d9..3e70c54d 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -482,6 +482,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_pull_to_refresh_title">Pull to Refresh</string>
<string name="no_link_available">Cannot get the link</string>
diff --git a/app/src/main/res/xml/gestures_and_buttons_preference.xml b/app/src/main/res/xml/gestures_and_buttons_preference.xml
index 7b883826..bd407a7a 100644
--- a/app/src/main/res/xml/gestures_and_buttons_preference.xml
+++ b/app/src/main/res/xml/gestures_and_buttons_preference.xml
@@ -39,6 +39,11 @@
app:key="swap_tap_and_long_in_comments"
app:title="@string/settings_swap_tap_and_long_title" />
+ <SwitchPreference
+ app:defaultValue="true"
+ app:key="pull_to_refresh"
+ app:title="@string/settings_pull_to_refresh_title" />
+
<Preference
app:title="@string/settings_swipe_action_title"
app:fragment="ml.docilealligator.infinityforreddit.Settings.SwipeActionPreferenceFragment" />