35 lines
1.5 KiB
XML
35 lines
1.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
|
|
|
|
<PreferenceCategory android:title="@string/preferences_storage__storage_usage" />
|
|
|
|
<org.thoughtcrime.securesms.preferences.widgets.StoragePreferenceCategory android:key="pref_storage_category" />
|
|
|
|
<PreferenceCategory android:layout="@layout/preference_divider" />
|
|
|
|
<PreferenceCategory
|
|
android:key="storage_limits"
|
|
android:title="@string/preferences_chats__message_trimming">
|
|
|
|
<org.thoughtcrime.securesms.components.SwitchPreferenceCompat
|
|
android:defaultValue="false"
|
|
android:key="pref_trim_threads"
|
|
android:summary="@string/preferences__automatically_delete_older_messages_once_a_conversation_exceeds_a_specified_length"
|
|
android:title="@string/preferences__delete_old_messages" />
|
|
|
|
<EditTextPreference
|
|
android:defaultValue="500"
|
|
android:dependency="pref_trim_threads"
|
|
android:inputType="number"
|
|
android:key="pref_trim_length"
|
|
android:title="@string/preferences__conversation_length_limit" />
|
|
|
|
<Preference
|
|
android:dependency="pref_trim_threads"
|
|
android:key="pref_trim_now"
|
|
android:summary="@string/preferences__scan_through_all_conversations_and_enforce_conversation_length_limits"
|
|
android:title="@string/preferences__trim_all_conversations_now" />
|
|
|
|
</PreferenceCategory>
|
|
|
|
</PreferenceScreen>
|