Merge "Mark WIDGET_CATEGORY_HOME and WIDGET_CATEGORY_SEARCHBOX on the search widget" into ub-launcher3-master

This commit is contained in:
Adam Cohen
2015-02-19 01:35:20 +00:00
committed by Android (Google) Code Review
+4 -1
View File
@@ -3966,8 +3966,11 @@ public class Launcher extends Activity
}
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_SEARCHBOX |
AppWidgetProviderInfo.WIDGET_CATEGORY_HOME_SCREEN);
SharedPreferences sp = getSharedPreferences(
LauncherAppState.getSharedPreferencesKey(), MODE_PRIVATE);