aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-03-07 10:06:48 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-03-07 10:06:48 +0000
commit22a7ad1eb5231bd89838621f4de488f1c9aaa686 (patch)
tree10c12f8e35c863af1b52ced92431722995f0430a /app/src/main/res
parent7ceb83d408ce5af8527887b2a90747bfed880664 (diff)
downloadinfinity-for-reddit-22a7ad1eb5231bd89838621f4de488f1c9aaa686.tar
infinity-for-reddit-22a7ad1eb5231bd89838621f4de488f1c9aaa686.tar.gz
infinity-for-reddit-22a7ad1eb5231bd89838621f4de488f1c9aaa686.tar.bz2
infinity-for-reddit-22a7ad1eb5231bd89838621f4de488f1c9aaa686.tar.lz
infinity-for-reddit-22a7ad1eb5231bd89838621f4de488f1c9aaa686.tar.xz
infinity-for-reddit-22a7ad1eb5231bd89838621f4de488f1c9aaa686.tar.zst
infinity-for-reddit-22a7ad1eb5231bd89838621f4de488f1c9aaa686.zip
Add an option to toggle swipe between posts.
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/values/strings.xml1
-rw-r--r--app/src/main/res/xml/gestures_and_buttons_preferences.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 3993d4ad..3295d811 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -544,6 +544,7 @@
<string name="settings_backup_settings_title">Backup Settings</string>
<string name="settings_restore_settings_title">Restore Settings</string>
<string name="settings_credits_love_animation_title">Love Animation</string>
+ <string name="settings_swipe_between_posts_title">Swipe Between Posts</string>
<string name="no_link_available">Cannot get the link</string>
diff --git a/app/src/main/res/xml/gestures_and_buttons_preferences.xml b/app/src/main/res/xml/gestures_and_buttons_preferences.xml
index 02a37524..b5c30058 100644
--- a/app/src/main/res/xml/gestures_and_buttons_preferences.xml
+++ b/app/src/main/res/xml/gestures_and_buttons_preferences.xml
@@ -44,6 +44,11 @@
app:key="pull_to_refresh"
app:title="@string/settings_pull_to_refresh_title" />
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="swipe_between_posts"
+ app:title="@string/settings_swipe_between_posts_title" />
+
<Preference
app:title="@string/settings_swipe_action_title"
app:fragment="ml.docilealligator.infinityforreddit.settings.SwipeActionPreferenceFragment" />