зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1216257 - Move settings items that don't belong elsewhere to "Advanced". r=sebastian
--HG-- extra : commitid : JodlP6Adn00 extra : rebase_source : ff60843ae82d358cf51dae8c4c956fb8f12a8ce0
This commit is contained in:
Родитель
d6b688d735
Коммит
fdb97e5393
|
@ -101,7 +101,6 @@
|
|||
|
||||
<!ENTITY settings "Settings">
|
||||
<!ENTITY settings_title "Settings">
|
||||
<!ENTITY pref_category_input_options "Input options">
|
||||
<!ENTITY pref_category_general "General">
|
||||
<!ENTITY pref_category_general_summary "Home, language, zoom, full-screen browsing">
|
||||
|
||||
|
|
|
@ -695,14 +695,6 @@ OnSharedPreferenceChangeListener
|
|||
} else if (pref instanceof PanelsPreferenceCategory) {
|
||||
mPanelsPreferenceCategory = (PanelsPreferenceCategory) pref;
|
||||
}
|
||||
if (getResources().getString(R.string.pref_category_input_options).equals(key)) {
|
||||
if (!InputOptionsUtils.supportsVoiceRecognizer(getApplicationContext(), getResources().getString(R.string.voicesearch_prompt)) &&
|
||||
!InputOptionsUtils.supportsQrCodeReader(getApplicationContext())) {
|
||||
preferences.removePreference(pref);
|
||||
i--;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (PREFS_ADVANCED.equals(key) &&
|
||||
!RestrictedProfiles.isAllowed(this, Restriction.DISALLOW_DEVELOPER_TOOLS)) {
|
||||
preferences.removePreference(pref);
|
||||
|
|
|
@ -44,23 +44,5 @@
|
|||
android:summary="@string/pref_open_external_urls_privately_summary"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<org.mozilla.gecko.preferences.AndroidImportPreference
|
||||
android:key="android.not_a_preference.import_android"
|
||||
gecko:entries="@array/pref_import_android_entries"
|
||||
gecko:entryValues="@array/pref_import_android_values"
|
||||
gecko:initialValues="@array/pref_import_android_defaults"
|
||||
gecko:entryKeys="@array/pref_import_android_keys"
|
||||
android:title="@string/pref_import_android"
|
||||
android:summary="@string/pref_import_android_summary"
|
||||
android:positiveButtonText="@string/bookmarkhistory_button_import"
|
||||
android:negativeButtonText="@string/button_cancel"
|
||||
android:persistent="false" />
|
||||
|
||||
<ListPreference android:key="app.update.autodownload"
|
||||
android:title="@string/pref_update_autodownload"
|
||||
android:entries="@array/pref_update_autodownload_entries"
|
||||
android:entryValues="@array/pref_update_autodownload_values"
|
||||
android:persistent="false" />
|
||||
|
||||
</PreferenceScreen>
|
||||
|
||||
|
|
|
@ -45,23 +45,6 @@
|
|||
android:summary="@string/pref_open_external_urls_privately_summary"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<org.mozilla.gecko.preferences.AndroidImportPreference
|
||||
android:key="android.not_a_preference.import_android"
|
||||
gecko:entries="@array/pref_import_android_entries"
|
||||
gecko:entryValues="@array/pref_import_android_values"
|
||||
gecko:initialValues="@array/pref_import_android_defaults"
|
||||
android:title="@string/pref_import_android"
|
||||
android:summary="@string/pref_import_android_summary"
|
||||
android:positiveButtonText="@string/bookmarkhistory_button_import"
|
||||
android:negativeButtonText="@string/button_cancel"
|
||||
android:persistent="false" />
|
||||
|
||||
<ListPreference android:key="app.update.autodownload"
|
||||
android:title="@string/pref_update_autodownload"
|
||||
android:entries="@array/pref_update_autodownload_entries"
|
||||
android:entryValues="@array/pref_update_autodownload_values"
|
||||
android:persistent="false" />
|
||||
|
||||
<org.mozilla.gecko.preferences.PrivateDataPreference
|
||||
android:key="android.not_a_preference.privacy.clear"
|
||||
android:title="@string/pref_clear_private_data_now"
|
||||
|
|
|
@ -14,10 +14,6 @@
|
|||
android:negativeButtonText="@string/button_cancel"
|
||||
android:persistent="false" />
|
||||
|
||||
<CheckBoxPreference android:key="media.autoplay.enabled"
|
||||
android:title="@string/pref_media_autoplay_enabled"
|
||||
android:summary="@string/pref_media_autoplay_enabled_summary" />
|
||||
|
||||
<CheckBoxPreference android:key="browser.ui.zoom.force-user-scalable"
|
||||
android:title="@string/pref_zoom_force_enabled"
|
||||
android:summary="@string/pref_zoom_force_enabled_summary" />
|
||||
|
@ -26,35 +22,14 @@
|
|||
android:title="@string/pref_magnifying_glass_enabled"
|
||||
android:summary="@string/pref_magnifying_glass_enabled_summary" />
|
||||
|
||||
<PreferenceCategory android:title="@string/pref_category_input_options"
|
||||
android:key="@string/pref_category_input_options">
|
||||
<CheckBoxPreference android:key="android.not_a_preference.voice_input_enabled"
|
||||
android:title="@string/pref_voice_input"
|
||||
android:summary="@string/pref_voice_input_summary"
|
||||
android:defaultValue="true"/>
|
||||
|
||||
<CheckBoxPreference android:key="android.not_a_preference.voice_input_enabled"
|
||||
android:title="@string/pref_voice_input"
|
||||
android:summary="@string/pref_voice_input_summary"
|
||||
android:defaultValue="true"/>
|
||||
|
||||
<CheckBoxPreference android:key="android.not_a_preference.qrcode_enabled"
|
||||
android:title="@string/pref_qrcode_enabled"
|
||||
android:summary="@string/pref_qrcode_enabled_summary"
|
||||
android:defaultValue="true"/>
|
||||
|
||||
</PreferenceCategory>
|
||||
|
||||
<PreferenceCategory android:title="@string/pref_category_advanced">
|
||||
|
||||
<ListPreference android:key="browser.menu.showCharacterEncoding"
|
||||
android:title="@string/pref_char_encoding"
|
||||
android:entries="@array/pref_char_encoding_entries"
|
||||
android:entryValues="@array/pref_char_encoding_values"
|
||||
android:persistent="false" />
|
||||
|
||||
<ListPreference android:key="plugin.enable"
|
||||
android:title="@string/pref_plugins"
|
||||
android:entries="@array/pref_plugins_entries"
|
||||
android:entryValues="@array/pref_plugins_values"
|
||||
android:persistent="false" />
|
||||
|
||||
</PreferenceCategory>
|
||||
<CheckBoxPreference android:key="android.not_a_preference.qrcode_enabled"
|
||||
android:title="@string/pref_qrcode_enabled"
|
||||
android:summary="@string/pref_qrcode_enabled_summary"
|
||||
android:defaultValue="true"/>
|
||||
|
||||
</PreferenceScreen>
|
||||
|
|
|
@ -8,6 +8,23 @@
|
|||
android:title="@string/pref_category_advanced"
|
||||
android:enabled="false">
|
||||
|
||||
<org.mozilla.gecko.preferences.AndroidImportPreference
|
||||
android:key="android.not_a_preference.import_android"
|
||||
gecko:entries="@array/pref_import_android_entries"
|
||||
gecko:entryValues="@array/pref_import_android_values"
|
||||
gecko:initialValues="@array/pref_import_android_defaults"
|
||||
android:title="@string/pref_import_android"
|
||||
android:summary="@string/pref_import_android_summary"
|
||||
android:positiveButtonText="@string/bookmarkhistory_button_import"
|
||||
android:negativeButtonText="@string/button_cancel"
|
||||
android:persistent="false" />
|
||||
|
||||
<ListPreference android:key="app.update.autodownload"
|
||||
android:title="@string/pref_update_autodownload"
|
||||
android:entries="@array/pref_update_autodownload_entries"
|
||||
android:entryValues="@array/pref_update_autodownload_values"
|
||||
android:persistent="false" />
|
||||
|
||||
<ListPreference android:key="android.not_a_preference.restoreSession3"
|
||||
android:title="@string/pref_restore"
|
||||
android:defaultValue="quit"
|
||||
|
@ -20,6 +37,22 @@
|
|||
android:summary="@string/pref_tap_to_load_images_summary2"
|
||||
android:defaultValue="false"/>
|
||||
|
||||
<ListPreference android:key="plugin.enable"
|
||||
android:title="@string/pref_plugins"
|
||||
android:entries="@array/pref_plugins_entries"
|
||||
android:entryValues="@array/pref_plugins_values"
|
||||
android:persistent="false" />
|
||||
|
||||
<CheckBoxPreference android:key="media.autoplay.enabled"
|
||||
android:title="@string/pref_media_autoplay_enabled"
|
||||
android:summary="@string/pref_media_autoplay_enabled_summary" />
|
||||
|
||||
<ListPreference android:key="browser.menu.showCharacterEncoding"
|
||||
android:title="@string/pref_char_encoding"
|
||||
android:entries="@array/pref_char_encoding_entries"
|
||||
android:entryValues="@array/pref_char_encoding_values"
|
||||
android:persistent="false" />
|
||||
|
||||
<CheckBoxPreference android:key="devtools.remote.usb.enabled"
|
||||
android:title="@string/pref_developer_remotedebugging_usb" />
|
||||
|
||||
|
|
|
@ -51,24 +51,5 @@
|
|||
android:summary="@string/pref_open_external_urls_privately_summary"
|
||||
android:defaultValue="false" />
|
||||
|
||||
<org.mozilla.gecko.preferences.AndroidImportPreference
|
||||
android:key="android.not_a_preference.import_android"
|
||||
gecko:entries="@array/pref_import_android_entries"
|
||||
gecko:entryValues="@array/pref_import_android_values"
|
||||
gecko:initialValues="@array/pref_import_android_defaults"
|
||||
gecko:entryKeys="@array/pref_import_android_keys"
|
||||
android:title="@string/pref_import_android"
|
||||
android:summary="@string/pref_import_android_summary"
|
||||
android:positiveButtonText="@string/bookmarkhistory_button_import"
|
||||
android:negativeButtonText="@string/button_cancel"
|
||||
android:persistent="false" />
|
||||
|
||||
|
||||
<ListPreference android:key="app.update.autodownload"
|
||||
android:title="@string/pref_update_autodownload"
|
||||
android:entries="@array/pref_update_autodownload_entries"
|
||||
android:entryValues="@array/pref_update_autodownload_values"
|
||||
android:persistent="false" />
|
||||
|
||||
</PreferenceScreen>
|
||||
|
||||
|
|
|
@ -140,7 +140,6 @@
|
|||
|
||||
<string name="settings">&settings;</string>
|
||||
<string name="settings_title">&settings_title;</string>
|
||||
<string name="pref_category_input_options">&pref_category_input_options;</string>
|
||||
<string name="pref_category_general">&pref_category_general;</string>
|
||||
<string name="pref_category_general_summary">&pref_category_general_summary;</string>
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче