<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools">

    <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_history">

        <Preference
            android:key="settings.keep_messages_duration"
            android:title="@string/preferences__keep_messages"
            tools:summary="@string/preferences_storage__forever" />

        <Preference
            android:inputType="number"
            android:key="pref_trim_length"
            android:title="@string/preferences__conversation_length_limit"
            tools:summary="None" />

        <Preference
            android:key="pref_storage_clear_message_history"
            android:title="@string/preferences__clear_message_history" />

    </PreferenceCategory>

</PreferenceScreen>
