Add quick search engines option in search engines page

This commit is contained in:
deeppandya
2024-11-06 11:16:31 -05:00
parent f57b2dda70
commit b03875b4fb
3 changed files with 10 additions and 0 deletions
@@ -23,12 +23,15 @@ public class BraveSearchEnginesPreferences extends BravePreferenceFragment
implements Preference.OnPreferenceChangeListener {
private static final String PREF_STANDARD_SEARCH_ENGINE = "standard_search_engine";
private static final String PREF_PRIVATE_SEARCH_ENGINE = "private_search_engine";
private static final String PREF_SEARCH_SUGGESTIONS = "search_suggestions";
private static final String PREF_SHOW_AUTOCOMPLETE_IN_ADDRESS_BAR =
"show_autocomplete_in_address_bar";
private static final String PREF_AUTOCOMPLETE_TOP_SITES = "autocomplete_top_sites";
private static final String PREF_ADD_OPEN_SEARCH_ENGINES = "brave.other_search_engines_enabled";
private static final String PREF_QUICK_SEARCH_ENGINE = "quick_search_engine";
private ChromeManagedPreferenceDelegate mManagedPreferenceDelegate;
private ChromeSwitchPreference mShowAutocompleteInAddressBar;
@@ -38,4 +38,8 @@
android:order="6"
android:title="@string/index_other_search_engines_title"
android:summary="@string/index_other_search_engines_text" />
<org.chromium.components.browser_ui.settings.ChromeBasePreference
android:key="quick_search_engine"
android:order="7"
android:title="@string/quick_search_engine"/>
</PreferenceScreen>
@@ -509,6 +509,9 @@ This file contains all "about" strings. It is set to NOT be translated, in tran
<message name="IDS_INDEX_OTHER_SEARCH_ENGINES_TEXT" desc="Text for the settings related to index other search engines">
Automatically indexes websites that follow the OpenSearch spec.
</message>
<message name="IDS_QUICK_SEARCH_ENGINE" desc="Title for quick search engine option">
Quick-Search Engines
</message>
<message name="IDS_MENU_EXIT" desc="Menu item for exit browser. [CHAR-LIMIT=27]">
Exit
</message>