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

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">

    <ListPreference
        android:key="pref_show_emails"
        android:title="@string/pref_show_emails"
        android:entries="@array/pref_show_emails_entries"
        android:entryValues="@array/pref_show_emails_values" />

    <org.thoughtcrime.securesms.components.SwitchPreferenceCompat
        android:defaultValue="true"
        android:key="pref_webxdc_realtime_enabled"
        android:summary="@string/enable_realtime_explain"
        android:title="@string/enable_realtime"/>

    <Preference android:key="pref_self_reporting"
        android:title="@string/send_stats_to_devs"/>

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

    <PreferenceCategory android:title="@string/pref_experimental_features">

        <Preference android:key="pref_webrtc_instance"
            android:title="@string/videochat_instance"
            android:summary="@string/none"/>

        <Preference android:key="pref_webxdc_store_url"
            android:title="@string/webxdc_store_url"
            android:summary="@string/none"/>

        <org.thoughtcrime.securesms.components.SwitchPreferenceCompat
            android:defaultValue="false"
            android:key="pref_developer_mode_enabled"
            android:summary="@string/pref_developer_mode_explain"
            android:title="@string/pref_developer_mode"/>

    </PreferenceCategory>

    <PreferenceCategory android:title="@string/pref_encryption">

        <org.thoughtcrime.securesms.components.SwitchPreferenceCompat
            android:defaultValue="true"
            android:key="pref_prefer_e2ee"
            android:title="@string/autocrypt_prefer_e2ee"/>


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

        <Preference android:key="pref_send_autocrypt_setup_message"
            android:title="@string/autocrypt_send_asm_title"/>

    </PreferenceCategory>

    <PreferenceCategory android:title="@string/pref_server">

        <Preference android:key="password_account_settings_button"
            android:title="@string/pref_password_and_account_settings"/>

        <Preference android:key="proxy_settings_button"
            android:title="@string/proxy_settings"/>

        <org.thoughtcrime.securesms.components.SwitchPreferenceCompat
            android:defaultValue="true"
            android:key="pref_bcc_self"
            android:title="@string/pref_send_copy_to_self"/>

        <org.thoughtcrime.securesms.components.SwitchPreferenceCompat
            android:defaultValue="true"
            android:key="pref_mvbox_move"
            android:title="@string/pref_auto_folder_moves"
            android:summary="@string/pref_auto_folder_moves_explain"/>

        <org.thoughtcrime.securesms.components.SwitchPreferenceCompat
            android:defaultValue="false"
            android:key="pref_only_fetch_mvbox"
            android:title="@string/pref_only_fetch_mvbox_title"
            android:summary="@string/pref_only_fetch_mvbox_explain" />

    </PreferenceCategory>

</PreferenceScreen>
