Merge "Mark WIDGET_CATEGORY_HOME and WIDGET_CATEGORY_SEARCHBOX on the search widget" into ub-launcher3-master
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user