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

Commit 0126f0f7 authored by Altaf-Mahdi's avatar Altaf-Mahdi Committed by Gerrit Code Review
Browse files

Revert "systemui: fix glitches with recents view and search widget"

This reverts commit 78647ea9.

Fixes portrait search bar showing in landscape, also fixes old style search bar being shown
in portrait sometimes.

Change-Id: I3e5c0c5df8dde6e2567e1fdaccec5d430680df6e
parent 1f124adc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -322,7 +322,7 @@ public class RecentsActivity extends Activity implements RecentsView.RecentsView
                        mSearchAppWidgetInfo);
                Bundle opts = new Bundle();
                opts.putInt(AppWidgetManager.OPTION_APPWIDGET_HOST_CATEGORY,
                        AppWidgetProviderInfo.WIDGET_CATEGORY_HOME_SCREEN);
                        AppWidgetProviderInfo.WIDGET_CATEGORY_SEARCHBOX);
                mSearchAppWidgetHostView.updateAppWidgetOptions(opts);
                // Set the padding to 0 for this search widget
                mSearchAppWidgetHostView.setPadding(0, 0, 0, 0);
+1 −1
Original line number Diff line number Diff line
@@ -471,7 +471,7 @@ public class SystemServicesProxy {
        int searchWidgetId = host.allocateAppWidgetId();
        Bundle opts = new Bundle();
        opts.putInt(AppWidgetManager.OPTION_APPWIDGET_HOST_CATEGORY,
                AppWidgetProviderInfo.WIDGET_CATEGORY_HOME_SCREEN);
                AppWidgetProviderInfo.WIDGET_CATEGORY_SEARCHBOX);
        if (!mAwm.bindAppWidgetIdIfAllowed(searchWidgetId, searchWidgetInfo.provider, opts)) {
            host.deleteAppWidgetId(searchWidgetId);
            return null;