settings_app.xml 3.03 KB
Newer Older
Ricki Hirner's avatar
Ricki Hirner committed
1 2
<?xml version="1.0" encoding="utf-8"?>
<!--
Ricki Hirner's avatar
Ricki Hirner committed
3
  ~ Copyright © Ricki Hirner (bitfire web engineering).
Ricki Hirner's avatar
Ricki Hirner committed
4 5 6 7 8 9
  ~ 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
  -->

10
<androidx.preference.PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
Ricki Hirner's avatar
Ricki Hirner committed
11

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

Ricki Hirner's avatar
Ricki Hirner committed
14
        <Preference
15 16 17 18 19 20 21
            android:title="@string/app_settings_show_debug_info"
            android:summary="@string/app_settings_show_debug_info_details"
            android:icon="@drawable/ic_bug_report_dark">
            <intent
                android:targetPackage="at.bitfire.davdroid"
                android:targetClass="at.bitfire.davdroid.ui.DebugInfoActivity"/>
        </Preference>
22

23 24 25 26 27 28 29
        <SwitchPreferenceCompat
            android:key="log_to_file"
            android:title="@string/app_settings_logging"
            android:icon="@drawable/ic_adb_dark"
            android:summaryOn="@string/app_settings_logging_on"
            android:summaryOff="@string/app_settings_logging_off"/>

30 31 32 33 34 35 36 37 38 39 40
    </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
41
            android:key="override_proxy_host"
42 43 44 45
            android:dependency="override_proxy"
            android:title="@string/app_settings_override_proxy_host"
            android:inputType="textUri"/>

46 47
        <at.bitfire.davdroid.ui.widget.IntEditTextPreference
            android:key="override_proxy_port"
48 49 50 51
            android:dependency="override_proxy"
            android:title="@string/app_settings_override_proxy_port"
            android:inputType="number"/>

Ricki Hirner's avatar
Ricki Hirner committed
52 53 54
    </PreferenceCategory>

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

56 57 58 59 60
        <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"/>
61

Ricki Hirner's avatar
Ricki Hirner committed
62 63
        <Preference
            android:key="reset_certificates"
64 65
            android:title="@string/app_settings_reset_certificates"
            android:summary="@string/app_settings_reset_certificates_summary"/>
66

Ricki Hirner's avatar
Ricki Hirner committed
67 68
    </PreferenceCategory>

69
    <PreferenceCategory android:title="@string/app_settings_user_interface">
70

71
        <Preference
72 73 74
            android:key="reset_hints"
            android:title="@string/app_settings_reset_hints"
            android:summary="@string/app_settings_reset_hints_summary"/>
75

Ricki Hirner's avatar
Ricki Hirner committed
76 77
    </PreferenceCategory>

78
</androidx.preference.PreferenceScreen>