aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/xml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-09-14 16:22:57 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-09-14 16:22:57 +0000
commit908cd0aaab5ebea29428dd2ad82dc77ed90616aa (patch)
treed7752d2db92f66a64aac86a2fe700c40e8c3837d /app/src/main/res/xml
parent4870d2bee64e454faf0f6a43269d0e00aaba52e7 (diff)
downloadinfinity-for-reddit-908cd0aaab5ebea29428dd2ad82dc77ed90616aa.tar
infinity-for-reddit-908cd0aaab5ebea29428dd2ad82dc77ed90616aa.tar.gz
infinity-for-reddit-908cd0aaab5ebea29428dd2ad82dc77ed90616aa.tar.bz2
infinity-for-reddit-908cd0aaab5ebea29428dd2ad82dc77ed90616aa.tar.lz
infinity-for-reddit-908cd0aaab5ebea29428dd2ad82dc77ed90616aa.tar.xz
infinity-for-reddit-908cd0aaab5ebea29428dd2ad82dc77ed90616aa.tar.zst
infinity-for-reddit-908cd0aaab5ebea29428dd2ad82dc77ed90616aa.zip
Add an option to disable vibration when swipe action is triggered.
Diffstat (limited to '')
-rw-r--r--app/src/main/res/xml/gestures_and_buttons_preference.xml4
-rw-r--r--app/src/main/res/xml/swipe_action_preferences.xml9
2 files changed, 13 insertions, 0 deletions
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 7a279247..7b883826 100644
--- a/app/src/main/res/xml/gestures_and_buttons_preference.xml
+++ b/app/src/main/res/xml/gestures_and_buttons_preference.xml
@@ -39,4 +39,8 @@
app:key="swap_tap_and_long_in_comments"
app:title="@string/settings_swap_tap_and_long_title" />
+ <Preference
+ app:title="@string/settings_swipe_action_title"
+ app:fragment="ml.docilealligator.infinityforreddit.Settings.SwipeActionPreferenceFragment" />
+
</PreferenceScreen> \ No newline at end of file
diff --git a/app/src/main/res/xml/swipe_action_preferences.xml b/app/src/main/res/xml/swipe_action_preferences.xml
new file mode 100644
index 00000000..daba347b
--- /dev/null
+++ b/app/src/main/res/xml/swipe_action_preferences.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="utf-8"?>
+<PreferenceScreen xmlns:app="http://schemas.android.com/apk/res-auto">
+
+ <SwitchPreference
+ app:defaultValue="true"
+ app:key="vibrate_when_action_triggered"
+ app:title="@string/settings_vibrate_when_action_triggered_title" />
+
+</PreferenceScreen> \ No newline at end of file