Merge "Revert "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-20 16:39:41 +00:00
committed by Android (Google) Code Review
+1 -4
View File
@@ -3966,11 +3966,8 @@ 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_HOME_SCREEN);
AppWidgetProviderInfo.WIDGET_CATEGORY_SEARCHBOX);
SharedPreferences sp = getSharedPreferences(
LauncherAppState.getSharedPreferencesKey(), MODE_PRIVATE);