<?xml version="1.0" encoding="utf-8"?>
<!--
  ~ Copyright © 2013 – 2016 Ricki Hirner (bitfire web engineering).
  ~ All rights reserved. This program and the accompanying materials
  ~ are made available under the terms of the GNU Public License v3.0
  ~ which accompanies this distribution, and is available at
  ~ http://www.gnu.org/licenses/gpl.html
  -->

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

    <PreferenceCategory android:title="@string/app_settings_user_interface">
        <Preference
            android:key="notification_settings"
            android:title="@string/app_settings_notification_settings"
            android:summary="@string/app_settings_notification_settings_summary"/>

        <SwitchPreferenceCompat
            android:key="show_change_notification"
            android:title="@string/app_settings_change_notification"/>

        <Preference
            android:key="reset_hints"
            android:title="@string/app_settings_reset_hints"
            android:summary="@string/app_settings_reset_hints_summary"/>

    </PreferenceCategory>

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

        <SwitchPreferenceCompat
            android:key="prefer_tasksorg"
            android:title="@string/app_settings_prefer_tasksorg"
            android:summaryOn="@string/app_settings_prefer_tasksorg_on"
            android:summaryOff="@string/app_settings_prefer_tasksorg_off"/>

    </PreferenceCategory>

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

        <SwitchPreferenceCompat
            android:key="override_proxy"
            android:title="@string/app_settings_override_proxy"
            android:summaryOn="@string/app_settings_override_proxy_on"
            android:summaryOff="@string/app_settings_override_proxy_off"/>

        <EditTextPreference
            android:key="proxy_host"
            android:dependency="override_proxy"
            android:title="@string/app_settings_override_proxy_host"
            android:inputType="textUri"/>

        <EditTextPreference
            android:key="proxy_port"
            android:dependency="override_proxy"
            android:title="@string/app_settings_override_proxy_port"
            android:inputType="number"/>

    </PreferenceCategory>

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

        <SwitchPreferenceCompat
            android:key="distrust_system_certs"
            android:title="@string/app_settings_distrust_system_certs"
            android:summaryOn="@string/app_settings_distrust_system_certs_on"
            android:summaryOff="@string/app_settings_distrust_system_certs_off"/>

        <Preference
            android:key="reset_certificates"
            android:title="@string/app_settings_reset_certificates"
            android:summary="@string/app_settings_reset_certificates_summary"/>

    </PreferenceCategory>

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

        <SwitchPreferenceCompat
            android:key="log_to_file"
            android:title="@string/app_settings_log_to_external_storage"
            android:summaryOn="@string/app_settings_log_to_external_storage_on"
            android:summaryOff="@string/app_settings_log_to_external_storage_off"/>

        <SwitchPreferenceCompat
            android:key="log_verbose"
            android:title="@string/app_settings_log_verbose"
            android:summary="@string/app_settings_log_verbose_summary"/>

        <ListPreference
            android:key="select_language"
            android:title="@string/app_settings_force_language"/>

        <Preference
            android:title="@string/app_settings_show_debug_info"
            android:summary="@string/app_settings_show_debug_info_details">
            <intent
                android:targetPackage="com.etesync.syncadapter"
                android:targetClass="com.etesync.syncadapter.ui.DebugInfoActivity"/>
        </Preference>

    </PreferenceCategory>

</PreferenceScreen>
