aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res/xml
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app/src/main/res/xml-sw600dp/post_details_preferences.xml47
-rw-r--r--app/src/main/res/xml/interface_preferences.xml9
-rw-r--r--app/src/main/res/xml/navigation_drawer_preferences.xml5
-rw-r--r--app/src/main/res/xml/post_details_preferences.xml41
-rw-r--r--app/src/main/res/xml/post_preferences.xml8
-rw-r--r--app/src/main/res/xml/security_preferences.xml6
-rw-r--r--app/src/main/res/xml/video_preferences.xml10
7 files changed, 126 insertions, 0 deletions
diff --git a/app/src/main/res/xml-sw600dp/post_details_preferences.xml b/app/src/main/res/xml-sw600dp/post_details_preferences.xml
new file mode 100644
index 00000000..0a8cf2c9
--- /dev/null
+++ b/app/src/main/res/xml-sw600dp/post_details_preferences.xml
@@ -0,0 +1,47 @@
+<?xml version="1.0" encoding="utf-8"?>
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto">
+
+ <SwitchPreference
+ app:defaultValue="true"
+ app:key="separate_post_and_comments_in_portrait_mode"
+ app:title="@string/settings_separate_post_and_comments_in_portrait_mode_title"
+ app:summary="@string/settings_separate_post_and_comments_summary" />
+
+ <SwitchPreference
+ app:defaultValue="true"
+ app:key="separate_post_and_comments_in_landscape_mode"
+ app:title="@string/settings_separate_post_and_comments_in_landscape_mode_title"
+ app:summary="@string/settings_separate_post_and_comments_summary" />
+
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="hide_post_type"
+ app:title="@string/settings_hide_post_type" />
+
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="hide_post_flair"
+ app:title="@string/settings_hide_post_flair" />
+
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="hide_the_number_of_awards"
+ app:title="@string/settings_hide_the_number_of_awards" />
+
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="hide_subreddit_and_user_prefix"
+ app:title="@string/settings_hide_subreddit_and_user_prefix" />
+
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="hide_the_number_of_votes"
+ app:title="@string/settings_hide_the_number_of_votes" />
+
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="hide_the_number_of_comments"
+ app:title="@string/settings_hide_the_number_of_comments" />
+
+</PreferenceScreen> \ No newline at end of file
diff --git a/app/src/main/res/xml/interface_preferences.xml b/app/src/main/res/xml/interface_preferences.xml
index 201b13cd..1a4e0f86 100644
--- a/app/src/main/res/xml/interface_preferences.xml
+++ b/app/src/main/res/xml/interface_preferences.xml
@@ -37,6 +37,11 @@
app:key="hide_subreddit_description"
app:title="@string/settings_hide_subreddit_description_title" />
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="use_bottom_toolbar_in_media_viewer"
+ app:title="@string/settings_use_bottom_toolbar_in_media_viewer_title" />
+
<ListPreference
app:defaultValue="0"
app:entries="@array/settings_default_search_result_tab"
@@ -54,6 +59,10 @@
app:fragment="ml.docilealligator.infinityforreddit.settings.PostPreferenceFragment" />
<Preference
+ app:title="@string/settings_post_details_title"
+ app:fragment="ml.docilealligator.infinityforreddit.settings.PostDetailsPreferenceFragment" />
+
+ <Preference
app:title="@string/settings_category_comment_title"
app:fragment="ml.docilealligator.infinityforreddit.settings.CommentPreferenceFragment" />
diff --git a/app/src/main/res/xml/navigation_drawer_preferences.xml b/app/src/main/res/xml/navigation_drawer_preferences.xml
index 3fb31b88..b34a32e7 100644
--- a/app/src/main/res/xml/navigation_drawer_preferences.xml
+++ b/app/src/main/res/xml/navigation_drawer_preferences.xml
@@ -18,6 +18,11 @@
<SwitchPreference
app:defaultValue="false"
+ app:key="collapse_reddit_section"
+ app:title="@string/settings_collapse_reddit_section_title" />
+
+ <SwitchPreference
+ app:defaultValue="false"
app:key="collapse_post_section"
app:title="@string/settings_collapse_post_section_title" />
diff --git a/app/src/main/res/xml/post_details_preferences.xml b/app/src/main/res/xml/post_details_preferences.xml
new file mode 100644
index 00000000..e549cb42
--- /dev/null
+++ b/app/src/main/res/xml/post_details_preferences.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="utf-8"?>
+<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
+ xmlns:app="http://schemas.android.com/apk/res-auto">
+
+ <SwitchPreference
+ app:defaultValue="true"
+ app:key="separate_post_and_comments_in_landscape_mode"
+ app:title="@string/settings_separate_post_and_comments_in_landscape_mode_title"
+ app:summary="@string/settings_separate_post_and_comments_summary" />
+
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="hide_post_type"
+ app:title="@string/settings_hide_post_type" />
+
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="hide_post_flair"
+ app:title="@string/settings_hide_post_flair" />
+
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="hide_the_number_of_awards"
+ app:title="@string/settings_hide_the_number_of_awards" />
+
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="hide_subreddit_and_user_prefix"
+ app:title="@string/settings_hide_subreddit_and_user_prefix" />
+
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="hide_the_number_of_votes"
+ app:title="@string/settings_hide_the_number_of_votes" />
+
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="hide_the_number_of_comments"
+ app:title="@string/settings_hide_the_number_of_comments" />
+
+</PreferenceScreen> \ No newline at end of file
diff --git a/app/src/main/res/xml/post_preferences.xml b/app/src/main/res/xml/post_preferences.xml
index 7ea526a5..55f9f5c2 100644
--- a/app/src/main/res/xml/post_preferences.xml
+++ b/app/src/main/res/xml/post_preferences.xml
@@ -10,6 +10,14 @@
app:title="@string/settings_default_post_layout"
app:useSimpleSummaryProvider="true" />
+ <ListPreference
+ app:defaultValue="-1"
+ android:entries="@array/settings_default_link_post_layout"
+ app:entryValues="@array/settings_default_link_post_layout_values"
+ app:key="default_link_post_layout"
+ app:title="@string/settings_default_link_post_layout"
+ app:useSimpleSummaryProvider="true" />
+
<Preference
app:title="@string/settings_number_of_columns_in_post_feed_title"
app:fragment="ml.docilealligator.infinityforreddit.settings.NumberOfColumnsInPostFeedPreferenceFragment" />
diff --git a/app/src/main/res/xml/security_preferences.xml b/app/src/main/res/xml/security_preferences.xml
index d43c2384..636f1798 100644
--- a/app/src/main/res/xml/security_preferences.xml
+++ b/app/src/main/res/xml/security_preferences.xml
@@ -5,4 +5,10 @@
app:key="require_auth_to_account_section"
app:title="@string/settings_require_authentication_to_go_to_account_section_in_navigation_drawer_title" />
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="secure_mode"
+ app:title="@string/settings_secure_mode_title"
+ app:summary="@string/settings_secure_mode_summary" />
+
</PreferenceScreen> \ No newline at end of file
diff --git a/app/src/main/res/xml/video_preferences.xml b/app/src/main/res/xml/video_preferences.xml
index a0924140..decf2674 100644
--- a/app/src/main/res/xml/video_preferences.xml
+++ b/app/src/main/res/xml/video_preferences.xml
@@ -25,6 +25,11 @@
app:title="@string/settings_video_player_ignore_nav_bar_title"
app:summary="@string/settings_video_player_ignore_nav_bar_summary" />
+ <SwitchPreference
+ app:defaultValue="false"
+ app:key="video_player_automatic_landscape_orientation"
+ app:title="@string/settings_video_player_automatic_landscape_orientation" />
+
<PreferenceCategory
app:title="@string/settings_video_autoplay_title" />
@@ -43,6 +48,11 @@
app:title="@string/settings_mute_autoplaying_videos_title" />
<SwitchPreference
+ app:defaultValue="false"
+ app:key="remember_muting_option_in_post_feed"
+ app:title="@string/settings_remember_muting_option_in_post_feed" />
+
+ <SwitchPreference
app:defaultValue="true"
app:key="autoplay_nsfw_videos"
app:title="@string/settings_autoplay_nsfw_videos_title" />