Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 991a40ca authored by Anushree Ganjam's avatar Anushree Ganjam Committed by Android (Google) Code Review
Browse files

Merge "Update the Online search Engine key to "selected_search_engine"." into main

parents 34459f02 34c4605c
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ import com.android.launcher3.widget.util.WidgetSizes;
 */
public class QsbContainerView extends FrameLayout {

    public static final String SEARCH_PROVIDER_SETTINGS_KEY = "SEARCH_PROVIDER_PACKAGE_NAME";
    public static final String SEARCH_ENGINE_SETTINGS_KEY = "selected_search_engine";

    /**
     * Returns the package name for user configured search provider or from searchManager
@@ -71,8 +71,8 @@ public class QsbContainerView extends FrameLayout {
    @WorkerThread
    @Nullable
    public static String getSearchWidgetPackageName(@NonNull Context context) {
        String providerPkg = Settings.Global.getString(context.getContentResolver(),
                SEARCH_PROVIDER_SETTINGS_KEY);
        String providerPkg = Settings.Secure.getString(context.getContentResolver(),
                SEARCH_ENGINE_SETTINGS_KEY);
        if (providerPkg == null) {
            SearchManager searchManager = context.getSystemService(SearchManager.class);
            ComponentName componentName = searchManager.getGlobalSearchActivity();