diff options
author | Docile-Alligator <chineseperson5@gmail.com> | 2022-03-25 13:43:38 +0000 |
---|---|---|
committer | Docile-Alligator <chineseperson5@gmail.com> | 2022-03-25 13:43:38 +0000 |
commit | ac749fe0f0b2c80ac79aa4b889c15c36ea1d5994 (patch) | |
tree | 48565855a2953447299e16934a5de6513f629014 /app/src/main/res | |
parent | 7422098734b8d99ea45e989d671978769ec32c12 (diff) | |
download | infinity-for-reddit-ac749fe0f0b2c80ac79aa4b889c15c36ea1d5994.tar infinity-for-reddit-ac749fe0f0b2c80ac79aa4b889c15c36ea1d5994.tar.gz infinity-for-reddit-ac749fe0f0b2c80ac79aa4b889c15c36ea1d5994.tar.bz2 infinity-for-reddit-ac749fe0f0b2c80ac79aa4b889c15c36ea1d5994.tar.lz infinity-for-reddit-ac749fe0f0b2c80ac79aa4b889c15c36ea1d5994.tar.xz infinity-for-reddit-ac749fe0f0b2c80ac79aa4b889c15c36ea1d5994.tar.zst infinity-for-reddit-ac749fe0f0b2c80ac79aa4b889c15c36ea1d5994.zip |
New option: Settings->Data Saving Mode->Reddit Video Default Resolution.
Diffstat (limited to '')
-rw-r--r-- | app/src/main/res/values/arrays.xml | 20 | ||||
-rw-r--r-- | app/src/main/res/values/strings.xml | 1 | ||||
-rw-r--r-- | app/src/main/res/xml/data_saving_mode_preferences.xml | 8 |
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 |