aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-09-15 15:03:08 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-09-15 15:03:08 +0000
commit7c23be5d2fc583e1aa1aa251287fee4c35f2c751 (patch)
tree01b569a7ac2bb77ef524fe886e87d70a05004ed1 /app/src/main/res
parent8ce4a0ef6bcabc66f70164e52080fe7d0f9aee0c (diff)
downloadinfinity-for-reddit-7c23be5d2fc583e1aa1aa251287fee4c35f2c751.tar
infinity-for-reddit-7c23be5d2fc583e1aa1aa251287fee4c35f2c751.tar.gz
infinity-for-reddit-7c23be5d2fc583e1aa1aa251287fee4c35f2c751.tar.bz2
infinity-for-reddit-7c23be5d2fc583e1aa1aa251287fee4c35f2c751.tar.lz
infinity-for-reddit-7c23be5d2fc583e1aa1aa251287fee4c35f2c751.tar.xz
infinity-for-reddit-7c23be5d2fc583e1aa1aa251287fee4c35f2c751.tar.zst
infinity-for-reddit-7c23be5d2fc583e1aa1aa251287fee4c35f2c751.zip
Add an option to disable swiping between tabs in MainActivity.
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/swipe_action_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 882a9dc4..46edd1fd 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -480,6 +480,7 @@
<string name="settings_separate_folder_for_each_subreddit">Separate Folder for Each Subreddit</string>
<string name="settings_swipe_action_title">Swipe Action</string>
<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="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 daba347b..8cf502b8 100644
--- a/app/src/main/res/xml/swipe_action_preferences.xml
+++ b/app/src/main/res/xml/swipe_action_preferences.xml
@@ -6,4 +6,9 @@
app:key="vibrate_when_action_triggered"
app:title="@string/settings_vibrate_when_action_triggered_title" />
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="disable_swiping_between_tabs"
+ app:title="@string/settings_disable_swiping_between_tabs_title" />
+
</PreferenceScreen> \ No newline at end of file