1
0
mirror of https://github.com/tuskyapp/Tusky synced 2024-12-25 16:23:29 +01:00

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:
HellPie 2018-08-30 22:44:51 +02:00 committed by HellPie
parent b41599e6d5
commit f66664a8a2
2 changed files with 11 additions and 0 deletions

View File

@ -175,6 +175,11 @@
<string name="pref_title_appearance_settings">Appearance</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">
<item>Dark</item>
<item>Light</item>

View File

@ -42,6 +42,12 @@
android:key="alwaysShowSensitiveMedia"
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 android:title="@string/pref_publishing">