preferences.xml 8.65 KB
Newer Older
1 2 3 4 5
<?xml version="1.0" encoding="utf-8"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

6 7
<androidx.preference.PreferenceScreen
    xmlns:android="http://schemas.android.com/apk/res/android"
8
    xmlns:app="http://schemas.android.com/apk/res-auto">
9

Emily Kager's avatar
Emily Kager committed
10
    <androidx.preference.Preference
11
        app:allowDividerBelow="false"
Emily Kager's avatar
Emily Kager committed
12 13 14
        android:key="@string/pref_key_sign_in"
        android:layout="@layout/sign_in_preference"
        android:summary="@string/preferences_sign_in_description"
15
        app:isPreferenceVisible="false"
16
        android:title="@string/preferences_sync" />
Emily Kager's avatar
Emily Kager committed
17 18

    <androidx.preference.PreferenceCategory
19
        android:key="@string/pref_key_account_category"
Emily Kager's avatar
Emily Kager committed
20
        android:title="@string/preferences_category_account"
21
        app:iconSpaceReserved="false"
Kate Glazko's avatar
Kate Glazko committed
22
        app:isPreferenceVisible="false"
23
        android:layout="@layout/preference_category_main_style" >
24

25
        <org.mozilla.fenix.settings.account.AccountPreference
26
            android:icon="@drawable/ic_account"
27 28
            android:key="@string/pref_key_account" />

29
        <org.mozilla.fenix.settings.account.AccountAuthErrorPreference
30 31
            android:icon="@drawable/ic_account_warning"
            android:key="@string/pref_key_account_auth_error"/>
Emily Kager's avatar
Emily Kager committed
32 33
    </androidx.preference.PreferenceCategory>

34 35 36 37 38 39 40 41 42 43 44 45 46 47
    <androidx.preference.EditTextPreference
        android:key="@string/pref_key_override_fxa_server"
        android:title="@string/preferences_override_fxa_server"
        android:inputType="textUri"
        app:iconSpaceReserved="false"
        app:isPreferenceVisible="false"/>

    <androidx.preference.EditTextPreference
        android:key="@string/pref_key_override_sync_tokenserver"
        android:title="@string/preferences_override_sync_tokenserver"
        android:inputType="textUri"
        app:iconSpaceReserved="false"
        app:isPreferenceVisible="false"/>

Emily Kager's avatar
Emily Kager committed
48
    <androidx.preference.PreferenceCategory
49
        android:title="@string/preferences_category_general"
50
        app:iconSpaceReserved="false"
51
        android:layout="@layout/preference_category_main_style" >
Emily Kager's avatar
Emily Kager committed
52
        <androidx.preference.Preference
53
            android:icon="@drawable/ic_search"
54 55
            android:key="@string/pref_key_search_settings"
            android:title="@string/preferences_search" />
56

Emily Kager's avatar
Emily Kager committed
57 58
        <androidx.preference.Preference
            android:icon="@drawable/ic_customize"
59 60 61 62 63 64 65
            android:key="@string/pref_key_customize"
            android:title="@string/preferences_customize" />

        <androidx.preference.Preference
            android:icon="@drawable/ic_login"
            android:key="@string/pref_key_passwords"
            android:title="@string/preferences_passwords_logins_and_passwords" />
Emily Kager's avatar
Emily Kager committed
66

67 68 69 70 71
        <androidx.preference.Preference
            android:icon="@drawable/ic_accessibility"
            android:key="@string/pref_key_accessibility"
            android:title="@string/preferences_accessibility" />

72 73 74 75 76
        <androidx.preference.Preference
            android:icon="@drawable/ic_language"
            android:key="@string/pref_key_language"
            android:title="@string/preferences_language" />

77
        <org.mozilla.fenix.settings.DefaultBrowserPreference
78
            android:icon="@drawable/ic_internet"
79 80
            android:key="@string/pref_key_make_default_browser"
            android:title="@string/preferences_set_as_default_browser" />
81 82 83 84 85

        <androidx.preference.Preference
            android:icon="@drawable/ic_multiple_tabs"
            android:key="@string/pref_key_close_tabs"
            android:title="@string/preferences_close_tabs" />
Emily Kager's avatar
Emily Kager committed
86
    </androidx.preference.PreferenceCategory>
87

Emily Kager's avatar
Emily Kager committed
88
    <androidx.preference.PreferenceCategory
89
        android:title="@string/preferences_category_privacy_security"
90
        app:iconSpaceReserved="false"
91
        android:layout="@layout/preference_category_main_style">
92 93 94

        <androidx.preference.Preference
            android:icon="@drawable/ic_private_browsing"
95
            android:key="@string/pref_key_private_browsing"
96
            app:isPreferenceVisible="false"
97 98
            android:title="@string/preferences_private_browsing_options"/>

99
        <androidx.preference.Preference
100
            android:icon="@drawable/ic_tracking_protection_enabled"
101
            android:key="@string/pref_key_tracking_protection_settings"
102
            app:isPreferenceVisible="false"
103
            android:title="@string/preference_enhanced_tracking_protection" />
104

105 106 107 108
        <androidx.preference.Preference
            android:icon="@drawable/ic_permission"
            android:key="@string/pref_key_site_permissions"
            android:title="@string/preferences_site_permissions" />
109

110 111 112 113
        <androidx.preference.Preference
            android:icon="@drawable/ic_delete"
            android:key="@string/pref_key_delete_browsing_data"
            android:title="@string/preferences_delete_browsing_data" />
114

115 116 117 118
        <androidx.preference.Preference
            android:icon="@drawable/ic_exit"
            android:key="@string/pref_key_delete_browsing_data_on_quit_preference"
            android:title="@string/preferences_delete_browsing_data_on_quit" />
119

120 121 122 123 124
        <androidx.preference.Preference
            android:icon="@drawable/ic_notifications"
            android:key="@string/pref_key_notifications"
            android:title="@string/preferences_notifications" />

Emily Kager's avatar
Emily Kager committed
125
        <androidx.preference.Preference
126 127
            android:icon="@drawable/ic_data_collection"
            android:key="@string/pref_key_data_choices"
128
            app:isPreferenceVisible="false"
129
            android:title="@string/preferences_data_collection" />
130

Emily Kager's avatar
Emily Kager committed
131
    </androidx.preference.PreferenceCategory>
132 133

    <PreferenceCategory
134
        android:title="@string/preferences_category_advanced"
135
        app:iconSpaceReserved="false"
136
        android:key="@string/pref_key_advanced"
137
        android:layout="@layout/preference_category_main_style">
138 139 140 141 142
        <SwitchPreference
            android:icon="@drawable/ic_screenshot"
            android:key="@string/pref_key_allow_screenshots_in_private_mode"
            android:title="@string/preferences_allow_screenshots" />

Gabriel Luong's avatar
Gabriel Luong committed
143
        <androidx.preference.Preference
144
            android:icon="@drawable/ic_addons_extensions"
Gabriel Luong's avatar
Gabriel Luong committed
145 146
            android:key="@string/pref_key_addons"
            android:title="@string/preferences_addons" />
147

148 149
        <androidx.preference.SwitchPreference
            android:defaultValue="false"
150
            android:icon="@drawable/ic_open_in_app"
151
            android:key="@string/pref_key_open_links_in_external_app"
152
            app:isPreferenceVisible="false"
153 154
            android:title="@string/preferences_open_links_in_apps" />

155 156 157 158
        <androidx.preference.SwitchPreference
            android:defaultValue="false"
            android:icon="@drawable/ic_download"
            android:key="@string/pref_key_external_download_manager"
159 160
            android:title="@string/preferences_external_download_manager"
            app:isPreferenceVisible="false"/>
161

162
        <androidx.preference.SwitchPreference
163
            android:defaultValue="true"
164 165 166
            android:icon="@drawable/ic_info"
            android:key="@string/pref_key_leakcanary"
            android:title="@string/preference_leakcanary"
167
            app:isPreferenceVisible="@bool/IS_DEBUG" />
168

169 170 171 172 173 174
        <androidx.preference.SwitchPreference
            android:icon="@drawable/ic_energy"
            android:key="@string/pref_key_remote_debugging"
            android:title="@string/preferences_remote_debugging"
            android:defaultValue="false" />
    </PreferenceCategory>
Emily Kager's avatar
Emily Kager committed
175

Emily Kager's avatar
Emily Kager committed
176
    <androidx.preference.PreferenceCategory
177
        android:title="@string/preferences_category_about"
178
        app:iconSpaceReserved="false"
179
        android:layout="@layout/preference_category_main_style">
180
        <androidx.preference.Preference
181 182 183
            android:icon="@drawable/ic_bookmark_outline"
            android:key="@string/pref_key_rate"
            android:title="@string/preferences_rate" />
184

185
        <androidx.preference.Preference
Emily Kager's avatar
Emily Kager committed
186
            android:icon="@drawable/ic_info"
187 188
            android:key="@string/pref_key_about"
            android:title="@string/preferences_about" />
189

190 191 192 193 194
        <androidx.preference.Preference
            android:icon="@drawable/ic_favorite"
            android:key="@string/pref_key_donate"
            android:title="@string/preferences_donate" />

195 196 197 198 199
        <androidx.preference.Preference
            android:icon="@drawable/ic_info"
            android:key="@string/pref_key_debug_settings"
            android:title="@string/preferences_debug_settings"
            app:isPreferenceVisible="false" />
Emily Kager's avatar
Emily Kager committed
200
    </androidx.preference.PreferenceCategory>
201
</androidx.preference.PreferenceScreen>