<?xml version="1.0" encoding="utf-8"?>

<PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android">
    <PreferenceCategory android:key="media_download" android:title="@string/preferences_chats__media_auto_download">
        <MultiSelectListPreference
                android:title="@string/preferences_chats__when_using_mobile_data"
                android:key="pref_media_download_mobile"
                android:defaultValue="@array/pref_media_download_mobile_data_default"
                android:persistent="true"
                android:entries="@array/pref_media_download_values"
                android:entryValues="@array/pref_media_download_entries" />

        <MultiSelectListPreference
                android:title="@string/preferences_chats__when_using_wifi"
                android:key="pref_media_download_wifi"
                android:defaultValue="@array/pref_media_download_wifi_default"
                android:persistent="true"
                android:entries="@array/pref_media_download_values"
                android:entryValues="@array/pref_media_download_entries" />

        <MultiSelectListPreference
                android:title="@string/preferences_chats__when_roaming"
                android:key="pref_media_download_roaming"
                android:defaultValue="@array/pref_media_download_roaming_default"
                android:persistent="true"
                android:entries="@array/pref_media_download_values"
                android:entryValues="@array/pref_media_download_entries" />
    </PreferenceCategory>

    <PreferenceCategory android:layout="@layout/preference_divider"/>

    <PreferenceCategory android:title="@string/preferences_chats__chats">
        <org.thoughtcrime.securesms.preferences.widgets.SignalListPreference
                android:key="pref_message_body_text_size"
                android:title="@string/preferences_chats__message_text_size"
                android:entries="@array/pref_message_font_size_entries"
                android:entryValues="@array/pref_message_font_size_values"
                android:defaultValue="16">
        </org.thoughtcrime.securesms.preferences.widgets.SignalListPreference>

        <org.thoughtcrime.securesms.components.SwitchPreferenceCompat
                android:defaultValue="true"
                android:key="pref_show_invite_reminder"
                android:title="@string/preferences_chats__show_invitation_prompts"
                android:summary="@string/preferences_chats__display_invitation_prompts_for_contacts_without_signal" />

        <org.thoughtcrime.securesms.components.SwitchPreferenceCompat
                android:defaultValue="false"
                android:key="pref_system_emoji"
                android:title="@string/preferences_advanced__use_system_emoji"
                android:summary="@string/preferences_advanced__disable_signal_built_in_emoji_support" />

        <org.thoughtcrime.securesms.components.SwitchPreferenceCompat
                android:defaultValue="false"
                android:key="pref_enter_sends"
                android:summary="@string/preferences__pressing_the_enter_key_will_send_text_messages"
                android:title="@string/preferences__pref_enter_sends_title"/>

    </PreferenceCategory>

    <PreferenceCategory android:layout="@layout/preference_divider"/>

    <PreferenceCategory android:key="backup_category" android:title="@string/preferences_chats__backups">
        <androidx.preference.Preference
                android:key="pref_backup"
                android:summary="@string/preferences_chats__backup_chats_to_external_storage"
                android:persistent="false"
                android:title="@string/preferences_chats__chat_backups" />
    </PreferenceCategory>

</PreferenceScreen>
