aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/res
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--app/src/main/res/values/arrays.xml20
-rw-r--r--app/src/main/res/values/strings.xml1
-rw-r--r--app/src/main/res/xml/data_saving_mode_preferences.xml8
3 files changed, 29 insertions, 0 deletions
diff --git a/app/src/main/res/values/arrays.xml b/app/src/main/res/values/arrays.xml
index 55b887bd..79229db3 100644
--- a/app/src/main/res/values/arrays.xml
+++ b/app/src/main/res/values/arrays.xml
@@ -643,4 +643,24 @@
<item>2</item>
</string-array>
+ <string-array name="settings_reddit_video_default_resolution">
+ <item>Auto</item>
+ <item>1080p</item>
+ <item>720p</item>
+ <item>480p</item>
+ <item>360p</item>
+ <item>240p</item>
+ <item>144p</item>
+ </string-array>
+
+ <string-array name="settings_reddit_video_default_resolution_values">
+ <item>0</item>
+ <item>1080</item>
+ <item>720</item>
+ <item>480</item>
+ <item>360</item>
+ <item>240</item>
+ <item>144</item>
+ </string-array>
+
</resources>
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 1293fe57..bb420e07 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -640,6 +640,7 @@
<string name="settings_miscellaneous_dangerous_group_title">Dangerous</string>
<string name="settings_post_feed_max_resolution_warning_title">Increase the value to show previews in higher resolution, but the app may crash unexpectedly.</string>
<string name="settings_post_feed_max_resolution_title">Post Feed Preview Max Resolution (Width * Height)</string>
+ <string name="settings_reddit_video_default_resolution">Reddit Video Default Resolution</string>
<string name="no_link_available">Cannot get the link</string>
diff --git a/app/src/main/res/xml/data_saving_mode_preferences.xml b/app/src/main/res/xml/data_saving_mode_preferences.xml
index 4c348335..1aad1008 100644
--- a/app/src/main/res/xml/data_saving_mode_preferences.xml
+++ b/app/src/main/res/xml/data_saving_mode_preferences.xml
@@ -25,4 +25,12 @@
app:key="only_disable_preview_in_video_and_gif_posts"
android:title="@string/settings_only_disable_preview_in_video_and_gif_posts_title" />
+ <ml.docilealligator.infinityforreddit.customviews.CustomFontListPreference
+ app:defaultValue="360"
+ app:key="reddit_video_default_resolution"
+ android:title="@string/settings_reddit_video_default_resolution"
+ app:entries="@array/settings_reddit_video_default_resolution"
+ app:entryValues="@array/settings_reddit_video_default_resolution_values"
+ app:useSimpleSummaryProvider="true" />
+
</PreferenceScreen> \ No newline at end of file