1 <?xml version="1.0" encoding="utf-8"?>
2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
3 - License, v. 2.0. If a copy of the MPL was not distributed with this
4 - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
6 <androidx.preference.PreferenceScreen
7 xmlns:android="http://schemas.android.com/apk/res/android"
8 xmlns:app="http://schemas.android.com/apk/res-auto">
10 <androidx.preference.Preference
11 app:allowDividerBelow="false"
12 android:key="@string/pref_key_sign_in"
13 android:layout="@layout/sign_in_preference"
14 android:summary="@string/preferences_sign_in_description"
15 android:title="@string/preferences_sync" />
17 <androidx.preference.PreferenceCategory
18 android:key="@string/pref_key_account_category"
19 android:title="@string/preferences_category_account"
20 app:iconSpaceReserved="false"
21 app:isPreferenceVisible="false"
22 android:layout="@layout/preference_category_main_style" >
24 <org.mozilla.fenix.settings.account.AccountPreference
25 android:icon="@drawable/ic_account"
26 android:key="@string/pref_key_account" />
28 <org.mozilla.fenix.settings.account.AccountAuthErrorPreference
29 android:icon="@drawable/ic_account_warning"
30 android:key="@string/pref_key_account_auth_error"/>
31 </androidx.preference.PreferenceCategory>
33 <androidx.preference.EditTextPreference
34 android:key="@string/pref_key_override_fxa_server"
35 android:title="@string/preferences_override_fxa_server"
36 android:inputType="textUri"
37 app:iconSpaceReserved="false"
38 app:isPreferenceVisible="false"/>
40 <androidx.preference.EditTextPreference
41 android:key="@string/pref_key_override_sync_tokenserver"
42 android:title="@string/preferences_override_sync_tokenserver"
43 android:inputType="textUri"
44 app:iconSpaceReserved="false"
45 app:isPreferenceVisible="false"/>
47 <androidx.preference.PreferenceCategory
48 android:title="@string/preferences_category_general"
49 app:iconSpaceReserved="false"
50 android:layout="@layout/preference_category_main_style" >
51 <androidx.preference.Preference
52 android:icon="@drawable/ic_search"
53 android:key="@string/pref_key_search_settings"
54 android:title="@string/preferences_search" />
56 <androidx.preference.Preference
57 android:icon="@drawable/ic_customize"
58 android:key="@string/pref_key_customize"
59 android:title="@string/preferences_customize" />
61 <androidx.preference.Preference
62 android:icon="@drawable/ic_login"
63 android:key="@string/pref_key_passwords"
64 android:title="@string/preferences_passwords_logins_and_passwords" />
66 <androidx.preference.Preference
67 android:icon="@drawable/ic_accessibility"
68 android:key="@string/pref_key_accessibility"
69 android:title="@string/preferences_accessibility" />
71 <androidx.preference.Preference
72 android:icon="@drawable/ic_language"
73 android:key="@string/pref_key_language"
74 android:title="@string/preferences_language" />
76 <org.mozilla.fenix.settings.DefaultBrowserPreference
77 android:icon="@drawable/ic_internet"
78 android:key="@string/pref_key_make_default_browser"
79 android:title="@string/preferences_set_as_default_browser" />
80 </androidx.preference.PreferenceCategory>
82 <androidx.preference.PreferenceCategory
83 android:title="@string/preferences_category_privacy_security"
84 app:iconSpaceReserved="false"
85 android:layout="@layout/preference_category_main_style">
87 <androidx.preference.Preference
88 android:icon="@drawable/ic_private_browsing"
89 android:key="@string/pref_key_private_browsing"
90 android:title="@string/preferences_private_browsing_options"/>
92 <androidx.preference.Preference
93 android:icon="@drawable/ic_tracking_protection_enabled"
94 android:key="@string/pref_key_tracking_protection_settings"
95 android:title="@string/preference_enhanced_tracking_protection" />
97 <androidx.preference.Preference
98 android:icon="@drawable/ic_permission"
99 android:key="@string/pref_key_site_permissions"
100 android:title="@string/preferences_site_permissions" />
102 <androidx.preference.Preference
103 android:icon="@drawable/ic_delete"
104 android:key="@string/pref_key_delete_browsing_data"
105 android:title="@string/preferences_delete_browsing_data" />
107 <androidx.preference.Preference
108 android:icon="@drawable/ic_exit"
109 android:key="@string/pref_key_delete_browsing_data_on_quit_preference"
110 android:title="@string/preferences_delete_browsing_data_on_quit" />
112 <androidx.preference.Preference
113 android:icon="@drawable/ic_data_collection"
114 android:key="@string/pref_key_data_choices"
115 android:title="@string/preferences_data_collection" />
117 </androidx.preference.PreferenceCategory>
120 android:title="@string/preferences_category_advanced"
121 app:iconSpaceReserved="false"
122 android:key="@string/pref_key_advanced"
123 android:layout="@layout/preference_category_main_style">
124 <androidx.preference.Preference
125 android:icon="@drawable/ic_addons_extensions"
126 android:key="@string/pref_key_addons"
127 android:title="@string/preferences_addons" />
129 <androidx.preference.SwitchPreference
130 android:defaultValue="false"
131 android:icon="@drawable/ic_open_in_app"
132 android:key="@string/pref_key_open_links_in_external_app"
133 android:title="@string/preferences_open_links_in_apps" />
135 <androidx.preference.SwitchPreference
136 android:defaultValue="false"
137 android:icon="@drawable/ic_download"
138 android:key="@string/pref_key_external_download_manager"
139 android:title="@string/preferences_external_download_manager"
140 app:isPreferenceVisible="false"/>
142 <androidx.preference.SwitchPreference
143 android:defaultValue="true"
144 android:icon="@drawable/ic_info"
145 android:key="@string/pref_key_leakcanary"
146 android:title="@string/preference_leakcanary"
147 app:isPreferenceVisible="@bool/IS_DEBUG" />
149 <androidx.preference.SwitchPreference
150 android:icon="@drawable/ic_energy"
151 android:key="@string/pref_key_remote_debugging"
152 android:title="@string/preferences_remote_debugging"
153 android:defaultValue="false" />
154 </PreferenceCategory>
156 <androidx.preference.PreferenceCategory
157 android:title="@string/preferences_category_about"
158 app:iconSpaceReserved="false"
159 android:layout="@layout/preference_category_main_style">
160 <androidx.preference.Preference
161 android:icon="@drawable/ic_bookmark_outline"
162 android:key="@string/pref_key_rate"
163 android:title="@string/preferences_rate" />
165 <androidx.preference.Preference
166 android:icon="@drawable/ic_info"
167 android:key="@string/pref_key_about"
168 android:title="@string/preferences_about" />
170 <androidx.preference.Preference
171 android:icon="@drawable/ic_info"
172 android:key="@string/pref_key_debug_settings"
173 android:title="@string/preferences_debug_settings"
174 app:isPreferenceVisible="false" />
175 </androidx.preference.PreferenceCategory>
176 </androidx.preference.PreferenceScreen>