aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/xml
diff options
context:
space:
mode:
authorAlex Ning <chineseperson5@gmail.com>2020-07-19 05:16:14 +0000
committerAlex Ning <chineseperson5@gmail.com>2020-07-19 05:16:14 +0000
commitf37a46e2c234fe50efcc867fdd224a14dcbfe45e (patch)
tree88501556d7abe3e4a0cc1235bbc5f3c98bfcce3a /app/src/main/res/xml
parent783325cfe1b4c8a77f094e3950a58f6fcd5ddbf7 (diff)
downloadinfinity-for-reddit-f37a46e2c234fe50efcc867fdd224a14dcbfe45e.tar
infinity-for-reddit-f37a46e2c234fe50efcc867fdd224a14dcbfe45e.tar.gz
infinity-for-reddit-f37a46e2c234fe50efcc867fdd224a14dcbfe45e.tar.bz2
infinity-for-reddit-f37a46e2c234fe50efcc867fdd224a14dcbfe45e.tar.lz
infinity-for-reddit-f37a46e2c234fe50efcc867fdd224a14dcbfe45e.tar.xz
infinity-for-reddit-f37a46e2c234fe50efcc867fdd224a14dcbfe45e.tar.zst
infinity-for-reddit-f37a46e2c234fe50efcc867fdd224a14dcbfe45e.zip
Reorganize settings.
Diffstat (limited to 'app/src/main/res/xml')
-rw-r--r--app/src/main/res/xml/interface_preference.xml25
-rw-r--r--app/src/main/res/xml/main_preferences.xml24
2 files changed, 29 insertions, 20 deletions
diff --git a/app/src/main/res/xml/interface_preference.xml b/app/src/main/res/xml/interface_preference.xml
index 8ad53611..cf959d82 100644
--- a/app/src/main/res/xml/interface_preference.xml
+++ b/app/src/main/res/xml/interface_preference.xml
@@ -24,14 +24,25 @@
app:title="@string/settings_enable_bottom_app_bar_title"
app:summary="@string/settings_enable_bottom_app_bar_summary" />
+ <PreferenceCategory
+ app:title="@string/settings_category_post_and_comment_title" />
+
+ <Preference
+ app:title="@string/settings_time_format_title"
+ app:fragment="ml.docilealligator.infinityforreddit.Settings.TimeFormatPreferenceFragment" />
+
<SwitchPreference
app:defaultValue="false"
app:key="vote_buttons_on_the_right"
app:title="@string/settings_vote_buttons_on_the_right_title" />
- <Preference
- app:title="@string/settings_time_format_title"
- app:fragment="ml.docilealligator.infinityforreddit.Settings.TimeFormatPreferenceFragment" />
+ <SwitchPreference
+ app:defaultValue="true"
+ app:key="show_absolute_number_of_votes"
+ app:title="@string/settings_show_absolute_number_of_votes_title" />
+
+ <PreferenceCategory
+ app:title="@string/settings_category_post_title" />
<ListPreference
app:defaultValue="0"
@@ -51,6 +62,9 @@
app:key="show_thumbnail_on_the_left_in_compact_layout"
app:title="@string/settings_show_thumbnail_on_the_left_in_compact_layout" />
+ <PreferenceCategory
+ app:title="@string/settings_category_comment_title" />
+
<SwitchPreference
app:defaultValue="false"
app:key="show_top_level_comments_first"
@@ -76,9 +90,4 @@
app:key="fully_collapse_comment"
android:title="@string/settings_fully_collapse_comment_title" />
- <SwitchPreference
- app:defaultValue="true"
- app:key="show_absolute_number_of_votes"
- app:title="@string/settings_show_absolute_number_of_votes_title" />
-
</PreferenceScreen> \ No newline at end of file
diff --git a/app/src/main/res/xml/main_preferences.xml b/app/src/main/res/xml/main_preferences.xml
index c15bfee4..af3f3898 100644
--- a/app/src/main/res/xml/main_preferences.xml
+++ b/app/src/main/res/xml/main_preferences.xml
@@ -22,23 +22,11 @@
app:title="@string/settings_gestures_and_buttons_title"
app:fragment="ml.docilealligator.infinityforreddit.Settings.GesturesAndButtonsPreferenceFragment" />
- <SwitchPreference
- app:defaultValue="false"
- app:icon="@drawable/ic_link"
- app:key="open_link_in_app"
- app:title="@string/settings_open_link_in_app_title" />
-
<Preference
app:title="@string/settigns_video_title"
android:icon="@drawable/ic_outline_video_24dp"
app:fragment="ml.docilealligator.infinityforreddit.Settings.VideoPreferenceFragment" />
- <SwitchPreference
- app:defaultValue="false"
- app:key="confirm_to_exit"
- app:icon="@drawable/ic_exit_24dp"
- app:title="@string/settings_confirm_to_exit" />
-
<ListPreference
app:defaultValue="2.5"
android:entries="@array/settings_lazy_mode_interval"
@@ -50,6 +38,18 @@
<SwitchPreference
app:defaultValue="false"
+ app:icon="@drawable/ic_link"
+ app:key="open_link_in_app"
+ app:title="@string/settings_open_link_in_app_title" />
+
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="confirm_to_exit"
+ app:icon="@drawable/ic_exit_24dp"
+ app:title="@string/settings_confirm_to_exit" />
+
+ <SwitchPreference
+ app:defaultValue="false"
app:key="nsfw"
app:icon="@drawable/ic_nsfw_on_24dp"
app:title="@string/settings_enable_nsfw_title" />