aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/values/arrays.xml16
-rw-r--r--app/src/main/res/values/strings.xml2
-rw-r--r--app/src/main/res/xml/post_preferences.xml8
3 files changed, 26 insertions, 0 deletions
diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml
index 38370d05..a22e1f60 100644
--- a/app/src/main/res/values/arrays.xml
+++ b/app/src/main/res/values/arrays.xml
@@ -55,6 +55,22 @@
<item>2</item>
</string-array>
+ <string-array name="settings_default_link_post_layout">
+ <item>@string/link_post_layout_auto</item>
+ <item>@string/post_layout_card</item>
+ <item>@string/post_layout_card_2</item>
+ <item>@string/post_layout_compact</item>
+ <item>@string/post_layout_gallery</item>
+ </string-array>
+
+ <string-array name="settings_default_link_post_layout_values">
+ <item>-1</item>
+ <item>0</item>
+ <item>3</item>
+ <item>1</item>
+ <item>2</item>
+ </string-array>
+
<string-array name="settings_video_autoplay">
<item>@string/always_on</item>
<item>@string/only_on_wifi</item>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index f44c7c92..b0cf0dde 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -401,6 +401,7 @@
<string name="settings_time_format_title">Time Format</string>
<string name="settings_category_post_title">Post</string>
<string name="settings_default_post_layout">Default Post Layout</string>
+ <string name="settings_default_link_post_layout">Default Link Post Layout</string>
<string name="settings_show_divider_in_compact_layout">Show Divider</string>
<string name="settings_show_thumbnail_on_the_left_in_compact_layout">Show Thumbnail on the Left</string>
<string name="settings_number_of_columns_in_post_feed_title">The Number of Columns in Post Feed</string>
@@ -619,6 +620,7 @@
<string name="favorites">Favorites</string>
<string name="all">All</string>
+ <string name="link_post_layout_auto">Auto</string>
<string name="post_layout_card">Card Layout</string>
<string name="post_layout_compact">Compact Layout</string>
<string name="post_layout_gallery">Gallery Layout</string>
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" />