forked from mozilla-mobile/focus-android
/
settings.xml
149 lines (121 loc) · 6.43 KB
/
settings.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<?xml version="1.0" encoding="utf-8"?>
<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Empty default: we use an empty string to indicate "system default" language being selected -->
<!--suppress AndroidDomInspection -->
<org.mozilla.focus.widget.LocaleListPreference
android:layout="@layout/focus_preference"
android:key="@string/pref_key_locale"
android:title="@string/preference_language"
android:defaultValue=""/>
<PreferenceCategory
android:title="@string/preference_category_search">
<org.mozilla.focus.search.SearchEnginePreference
android:layout="@layout/focus_preference"
android:key="@string/pref_key_search_engine"
android:summary="@string/preference_search_engine_default" />
<org.mozilla.focus.autocomplete.AutocompletePreference
android:layout="@layout/focus_preference"
android:key="@string/pref_key_screen_autocomplete"
android:summary="WHAT?"
android:title="@string/preference_subitem_autocomplete" />
</PreferenceCategory>
<PreferenceCategory
android:title="@string/preference_category_privacy">
<SwitchPreference
android:layout="@layout/focus_preference"
android:title="@string/preference_privacy_block_ads"
android:key="@string/pref_key_privacy_block_ads"
android:summary="@string/preference_privacy_block_ads_summary"
android:defaultValue="true" />
<SwitchPreference
android:layout="@layout/focus_preference"
android:title="@string/preference_privacy_block_analytics"
android:key="@string/pref_key_privacy_block_analytics"
android:summary="@string/preference_privacy_block_analytics_summary"
android:defaultValue="true" />
<SwitchPreference
android:layout="@layout/focus_preference"
android:title="@string/preference_privacy_block_social"
android:key="@string/pref_key_privacy_block_social"
android:summary="@string/preference_privacy_block_social_summary"
android:defaultValue="true" />
<SwitchPreference
android:layout="@layout/focus_preference"
android:title="@string/preference_privacy_block_content"
android:key="@string/pref_key_privacy_block_other"
android:summary="@string/preference_privacy_block_content_summary2"
android:defaultValue="false" />
<SwitchPreference
android:key="@string/pref_key_secure"
android:title="@string/preference_privacy_secure_mode"
android:summary="@string/preference_privacy_stealth_summary"
android:defaultValue="false" />
<ListPreference
android:title="@string/preference_privacy_category_cookies"
android:key="@string/pref_key_performance_enable_cookies"
android:entries="@array/preference_privacy_cookies_options"
android:entryValues="@array/preference_privacy_cookies_options"
android:defaultValue="@string/preference_privacy_should_block_cookies_no_option"/>
</PreferenceCategory>
<PreferenceCategory
android:title="@string/preference_category_performance">
<SwitchPreference
android:layout="@layout/focus_preference"
android:title="@string/preference_performance_block_webfonts"
android:key="@string/pref_key_performance_block_webfonts"
android:summary="@string/preference_performance_block_webfonts_summary"
android:defaultValue="false" />
<SwitchPreference
android:layout="@layout/focus_preference"
android:title="@string/preference_performance_block_javascript"
android:key="@string/pref_key_performance_block_javascript"
android:summary="@string/preference_performance_block_javascript_summary"
android:defaultValue="false" />
<!-- // Not shipping in v1 (#188)
<SwitchPreference
android:title="@string/preference_performance_block_images"
android:key="@string/pref_key_performance_block_images"
android:defaultValue="@string/preference_performance_block_images" />
-->
</PreferenceCategory>
<PreferenceCategory
android:title="@string/preference_category_mozilla">
<org.mozilla.focus.widget.DefaultBrowserPreference
android:layout="@layout/focus_preference"
android:key="@string/pref_key_default_browser"
android:title="@string/preference_default_browser2" />
<org.mozilla.focus.widget.TelemetrySwitchPreference
android:layout="@layout/focus_preference"
android:title="@string/preference_mozilla_telemetry2"
android:persistent="false"
android:summary="@string/preference_mozilla_telemetry_summary2" />
<Preference
android:key="@string/pref_key_reset_default_browser"
android:title="@string/preference_browser_default_settings"
android:summary="@string/preference_browser_default_settings_summary"
android:defaultValue="false" />
<!-- AboutPreference performs some string substitutions, so that we can show "About <AppName>".
We keep a plain "About" as the title here in xml as a fallback, but AboutPreference
will use the substitution regardless of what is set here. -->
<org.mozilla.focus.widget.AboutPreference
android:icon="@drawable/ic_tab_new"
android:key="@string/pref_key_about"
android:layout="@layout/focus_preference"
android:title="@string/menu_about" />
<Preference
android:icon="@drawable/ic_tab_new"
android:key="@string/pref_key_help"
android:layout="@layout/focus_preference"
android:title="@string/menu_help" />
<Preference
android:icon="@drawable/ic_tab_new"
android:key="@string/pref_key_rights"
android:layout="@layout/focus_preference"
android:title="@string/menu_rights" />
<Preference
android:icon="@drawable/ic_tab_new"
android:key="@string/pref_key_privacy_notice"
android:layout="@layout/focus_preference"
android:title="@string/preference_privacy_notice" />
</PreferenceCategory>
</PreferenceScreen>