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

Commit 78647ea9 authored by Jorge Ruesga's avatar Jorge Ruesga Committed by Steve Kondik
Browse files

systemui: fix glitches with recents view and search widget



Reduce the glitches causes by switchin between the recents view and the search activity (with text
and voice search). Force search widget (specially to QuickSearchBox) to view the recents activity
as a HOME_SCREEN widget category instead of a SEARCHBOX widget category.

Change-Id: I08157d7de8dab806b19d2f4a28f9843402d12179
Signed-off-by: default avatarJorge Ruesga <jorge@ruesga.com>
parent 7c8fc111
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_SEARCHBOX);
                        AppWidgetProviderInfo.WIDGET_CATEGORY_HOME_SCREEN);
                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
@@ -474,7 +474,7 @@ public class SystemServicesProxy {
        int searchWidgetId = host.allocateAppWidgetId();
        Bundle opts = new Bundle();
        opts.putInt(AppWidgetManager.OPTION_APPWIDGET_HOST_CATEGORY,
                AppWidgetProviderInfo.WIDGET_CATEGORY_SEARCHBOX);
                AppWidgetProviderInfo.WIDGET_CATEGORY_HOME_SCREEN);
        if (!mAwm.bindAppWidgetIdIfAllowed(searchWidgetId, searchWidgetInfo.provider, opts)) {
            host.deleteAppWidgetId(searchWidgetId);
            return null;