From da4fe1a6244457f144e0a331cada3ada17157809 Mon Sep 17 00:00:00 2001 From: Sunny Goyal Date: Thu, 26 May 2016 16:05:17 -0700 Subject: Moving the QSB to the workspace grid. The QSB will only be resent on the first screen of the workspace covering the full width of the first row. If will not be movable. The first screen of the workspace will not be movable. The searchDropTargetBar no longer contains the QSB (it can be renamed in aseparate cl). Refactoring all QSB related logic by moving it to a custom view inflated only using xml. Change-Id: Icb4fd6eb855df1af15f685961c38351bf4fd4f4a --- src/com/android/launcher3/LauncherAppWidgetHost.java | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/com/android/launcher3/LauncherAppWidgetHost.java') diff --git a/src/com/android/launcher3/LauncherAppWidgetHost.java b/src/com/android/launcher3/LauncherAppWidgetHost.java index 8c23ff30d..3bb73813d 100644 --- a/src/com/android/launcher3/LauncherAppWidgetHost.java +++ b/src/com/android/launcher3/LauncherAppWidgetHost.java @@ -37,7 +37,6 @@ public class LauncherAppWidgetHost extends AppWidgetHost { private final ArrayList mProviderChangeListeners = new ArrayList(); - private int mQsbWidgetId = -1; private Launcher mLauncher; public LauncherAppWidgetHost(Launcher launcher, int hostId) { @@ -45,23 +44,9 @@ public class LauncherAppWidgetHost extends AppWidgetHost { mLauncher = launcher; } - public void setQsbWidgetId(int widgetId) { - mQsbWidgetId = widgetId; - } - @Override protected AppWidgetHostView onCreateView(Context context, int appWidgetId, AppWidgetProviderInfo appWidget) { - if (appWidgetId == mQsbWidgetId) { - return new LauncherAppWidgetHostView(context) { - - @Override - protected View getErrorView() { - // For the QSB, show an empty view instead of an error view. - return new View(getContext()); - } - }; - } return new LauncherAppWidgetHostView(context); } -- cgit v1.2.3