aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/xml/miscellaneous_preferences.xml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2021-10-08 12:21:08 +0000
committerAlex Ning <chineseperson5@gmail.com>2021-10-08 12:21:08 +0000
commit723f1c0713c9c79ac005992dfcf32a52d858dee3 (patch)
treeb6e8f4bd7b0c936aa5ee3c6c2950bd4d002da99c /app/src/main/res/xml/miscellaneous_preferences.xml
parentf5a333e2ac3c3032f787d6b7f66b751aa70767ef (diff)
downloadinfinity-for-reddit-723f1c0713c9c79ac005992dfcf32a52d858dee3.tar
infinity-for-reddit-723f1c0713c9c79ac005992dfcf32a52d858dee3.tar.gz
infinity-for-reddit-723f1c0713c9c79ac005992dfcf32a52d858dee3.tar.bz2
infinity-for-reddit-723f1c0713c9c79ac005992dfcf32a52d858dee3.tar.lz
infinity-for-reddit-723f1c0713c9c79ac005992dfcf32a52d858dee3.tar.xz
infinity-for-reddit-723f1c0713c9c79ac005992dfcf32a52d858dee3.tar.zst
infinity-for-reddit-723f1c0713c9c79ac005992dfcf32a52d858dee3.zip
New option: Main Page Back Button Action. It replaces Confirm to Exit.
Diffstat (limited to 'app/src/main/res/xml/miscellaneous_preferences.xml')
-rw-r--r--app/src/main/res/xml/miscellaneous_preferences.xml11
1 files changed, 7 insertions, 4 deletions
diff --git a/app/src/main/res/xml/miscellaneous_preferences.xml b/app/src/main/res/xml/miscellaneous_preferences.xml
index b17e7545..67a78aca 100644
--- a/app/src/main/res/xml/miscellaneous_preferences.xml
+++ b/app/src/main/res/xml/miscellaneous_preferences.xml
@@ -13,11 +13,14 @@
app:key="open_link_in_app"
app:title="@string/settings_open_link_in_app_title" />
- <SwitchPreference
- app:defaultValue="false"
- app:key="confirm_to_exit"
+ <ListPreference
+ app:defaultValue="0"
+ app:entries="@array/main_page_back_button_action"
+ app:entryValues="@array/main_page_back_button_action_values"
+ app:key="main_page_back_button_action"
app:icon="@drawable/ic_exit_24dp"
- app:title="@string/settings_confirm_to_exit" />
+ app:title="@string/settings_main_page_back_button_action"
+ app:useSimpleSummaryProvider="true" />
<SwitchPreference
app:defaultValue="true"