Add preferences so that users can toggle the collapsing of long posts
This is currently limited to a simple toggle, it would be nice to implement a more advanced UI to offer the user more control over the feature.
This commit is contained in:
parent
b41599e6d5
commit
f66664a8a2
|
@ -175,6 +175,11 @@
|
||||||
<string name="pref_title_appearance_settings">Appearance</string>
|
<string name="pref_title_appearance_settings">Appearance</string>
|
||||||
<string name="pref_title_app_theme">App Theme</string>
|
<string name="pref_title_app_theme">App Theme</string>
|
||||||
|
|
||||||
|
<string name="pref_appearance_long_posts_title">Collapse long posts</string>
|
||||||
|
<string name="pref_appearance_long_posts_enabled">Long posts will only show the first 500 characters.</string>
|
||||||
|
<string name="pref_appearance_long_posts_disabled">Long posts (over 500 characters) will not be collapsed to save space.</string>
|
||||||
|
|
||||||
|
|
||||||
<string-array name="app_theme_names">
|
<string-array name="app_theme_names">
|
||||||
<item>Dark</item>
|
<item>Dark</item>
|
||||||
<item>Light</item>
|
<item>Light</item>
|
||||||
|
|
|
@ -42,6 +42,12 @@
|
||||||
android:key="alwaysShowSensitiveMedia"
|
android:key="alwaysShowSensitiveMedia"
|
||||||
android:title="@string/pref_title_alway_show_sensitive_media" />
|
android:title="@string/pref_title_alway_show_sensitive_media" />
|
||||||
|
|
||||||
|
<CheckBoxPreference
|
||||||
|
android:defaultValue="true"
|
||||||
|
android:key="collapseLongStatuses"
|
||||||
|
android:title="@string/pref_appearance_long_posts_title"
|
||||||
|
android:summaryOn="@string/pref_appearance_long_posts_enabled"
|
||||||
|
android:summaryOff="@string/pref_appearance_long_posts_disabled"/>
|
||||||
</PreferenceCategory>
|
</PreferenceCategory>
|
||||||
|
|
||||||
<PreferenceCategory android:title="@string/pref_publishing">
|
<PreferenceCategory android:title="@string/pref_publishing">
|
||||||
|
|
Loading…
Reference in New Issue