preferences.xml 8.89 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
100
101
102
103
        <androidx.preference.Preference
            android:icon="@drawable/ic_tor_network_settings"
            android:key="@string/pref_key_tor_network_settings"
            android:title="@string/preferences_tor_network_settings" />

104
        <androidx.preference.Preference
105
            android:icon="@drawable/ic_tracking_protection_enabled"
106
            android:key="@string/pref_key_tracking_protection_settings"
107
            app:isPreferenceVisible="false"
108
            android:title="@string/preference_enhanced_tracking_protection" />
109

110
111
112
113
        <androidx.preference.Preference
            android:icon="@drawable/ic_permission"
            android:key="@string/pref_key_site_permissions"
            android:title="@string/preferences_site_permissions" />
114

115
116
117
118
        <androidx.preference.Preference
            android:icon="@drawable/ic_delete"
            android:key="@string/pref_key_delete_browsing_data"
            android:title="@string/preferences_delete_browsing_data" />
119

120
121
122
123
        <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" />
124

125
126
127
128
129
        <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
130
        <androidx.preference.Preference
131
132
            android:icon="@drawable/ic_data_collection"
            android:key="@string/pref_key_data_choices"
133
            app:isPreferenceVisible="false"
134
            android:title="@string/preferences_data_collection" />
135

Emily Kager's avatar
Emily Kager committed
136
    </androidx.preference.PreferenceCategory>
137
138

    <PreferenceCategory
139
        android:title="@string/preferences_category_advanced"
140
        app:iconSpaceReserved="false"
141
        android:key="@string/pref_key_advanced"
142
        android:layout="@layout/preference_category_main_style">
143
144
145
146
147
        <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
148
        <androidx.preference.Preference
149
            android:icon="@drawable/ic_addons_extensions"
Gabriel Luong's avatar
Gabriel Luong committed
150
151
            android:key="@string/pref_key_addons"
            android:title="@string/preferences_addons" />
152

153
154
        <androidx.preference.SwitchPreference
            android:defaultValue="false"
155
            android:icon="@drawable/ic_open_in_app"
156
            android:key="@string/pref_key_open_links_in_external_app"
157
            app:isPreferenceVisible="false"
158
159
            android:title="@string/preferences_open_links_in_apps" />

160
161
162
163
        <androidx.preference.SwitchPreference
            android:defaultValue="false"
            android:icon="@drawable/ic_download"
            android:key="@string/pref_key_external_download_manager"
164
165
            android:title="@string/preferences_external_download_manager"
            app:isPreferenceVisible="false"/>
166

167
        <androidx.preference.SwitchPreference
168
            android:defaultValue="true"
169
170
171
            android:icon="@drawable/ic_info"
            android:key="@string/pref_key_leakcanary"
            android:title="@string/preference_leakcanary"
172
            app:isPreferenceVisible="@bool/IS_DEBUG" />
173

174
175
176
177
178
179
        <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
180

Emily Kager's avatar
Emily Kager committed
181
    <androidx.preference.PreferenceCategory
182
        android:title="@string/preferences_category_about"
183
        app:iconSpaceReserved="false"
184
        android:layout="@layout/preference_category_main_style">
185
        <androidx.preference.Preference
186
187
188
            android:icon="@drawable/ic_bookmark_outline"
            android:key="@string/pref_key_rate"
            android:title="@string/preferences_rate" />
189

190
        <androidx.preference.Preference
Emily Kager's avatar
Emily Kager committed
191
            android:icon="@drawable/ic_info"
192
193
            android:key="@string/pref_key_about"
            android:title="@string/preferences_about" />
194

195
196
197
198
199
        <androidx.preference.Preference
            android:icon="@drawable/ic_favorite"
            android:key="@string/pref_key_donate"
            android:title="@string/preferences_donate" />

200
201
202
203
204
        <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
205
    </androidx.preference.PreferenceCategory>
206
</androidx.preference.PreferenceScreen>