Revert "Mark WIDGET_CATEGORY_HOME and WIDGET_CATEGORY_SEARCHBOX on the search widget"
This reverts commit 87cf88393cedb66633bbcf51c283d525ef88932f.
Change-Id: Ie15c71f76c71dfb6b85aefcc10cd66eb49bea6dc
diff --git a/src/com/android/launcher3/Launcher.java b/src/com/android/launcher3/Launcher.java
index 0fb8f4d..61915b7 100644
--- a/src/com/android/launcher3/Launcher.java
+++ b/src/com/android/launcher3/Launcher.java
@@ -3910,11 +3910,8 @@
}
Bundle opts = new Bundle();
- // We indicate that this widget is both acting as a search box affordance as well
- // as being present on the home screen.
opts.putInt(AppWidgetManager.OPTION_APPWIDGET_HOST_CATEGORY,
- AppWidgetProviderInfo.WIDGET_CATEGORY_SEARCHBOX |
- AppWidgetProviderInfo.WIDGET_CATEGORY_HOME_SCREEN);
+ AppWidgetProviderInfo.WIDGET_CATEGORY_SEARCHBOX);
SharedPreferences sp = getSharedPreferences(
LauncherAppState.getSharedPreferencesKey(), MODE_PRIVATE);