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

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

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

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

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

        <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_multidevice"
            android:summary="@string/pref_multidevice_explain"/>

    </PreferenceCategory>

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

        <Preference
            android:summary="@string/pref_experimental_features_explain"
            android:selectable="false" />

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

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

    </PreferenceCategory>

    <PreferenceCategory android:key="pref_category_legacy" android:title="Legacy">

        <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_mvbox_move"
            android:title="@string/pref_auto_folder_moves"/>

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

    </PreferenceCategory>

</PreferenceScreen>
