New option: Settings->Miscellaneous->Post Feed Preview Max Resolution. Fix low resolution post previews when showing them for the first time. Tweak themed icon.

This commit is contained in:
Docile-Alligator
2022-03-06 10:41:02 +08:00
parent dc9725735b
commit 141abc654a
12 changed files with 220 additions and 44 deletions

File diff suppressed because one or more lines are too long

View File

@@ -637,6 +637,9 @@
<string name="settings_reddit_user_agreement_title">Reddit User Agreement</string>
<string name="settings_always_show_child_comment_count_title">Always Show the Number of Child Comments</string>
<string name="settings_hide_upvote_ratio_title">Hide Upvote Ratio</string>
<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="no_link_available">Cannot get the link</string>
@@ -1283,4 +1286,6 @@
<string name="option_5_hint">Option 5</string>
<string name="option_6_hint">Option 6</string>
<string name="not_a_valid_number">Not a valid number</string>
</resources>

View File

@@ -40,4 +40,18 @@
app:title="@string/settings_language_title"
app:useSimpleSummaryProvider="true" />
<ml.docilealligator.infinityforreddit.customviews.CustomFontPreferenceCategory
app:title="@string/settings_miscellaneous_dangerous_group_title" />
<ml.docilealligator.infinityforreddit.customviews.CustomFontPreference
app:icon="@drawable/ic_info_preference_24dp"
app:summary="@string/settings_post_feed_max_resolution_warning_title"
app:enabled="false" />
<ml.docilealligator.infinityforreddit.customviews.CustomFontEditTextPreference
app:defaultValue="5000000"
app:key="post_feed_max_resolution"
app:title="@string/settings_post_feed_max_resolution_title"
app:useSimpleSummaryProvider="true" />
</PreferenceScreen>