mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-04 18:06:48 +00:00
Filter shortcuts in the widget picker activity.
In its current state the WidgetPickerActivity only allows adding widget items, so to match the state, updated it to show only widgets. manual test - https://screen/cast/NDUxMjg1NjI0MTM0MDQxNnwxMzE4MzNhOS1mZg Bug: 320495335 Test: atest Launcher3Tests Flag: N/A Change-Id: Ifa75f457219efef49e104efc428d369187db2710
This commit is contained in:
@@ -158,7 +158,10 @@ public class WidgetPickerActivity extends BaseActivity {
|
||||
LauncherAppState app = LauncherAppState.getInstance(this);
|
||||
mModel.update(app, null);
|
||||
final ArrayList<WidgetsListBaseEntry> widgets =
|
||||
mModel.getWidgetsListForPicker(app.getContext());
|
||||
mModel.getFilteredWidgetsListForPicker(
|
||||
app.getContext(),
|
||||
/*widgetItemFilter=*/ item -> item.widgetInfo != null
|
||||
);
|
||||
MAIN_EXECUTOR.execute(() -> mPopupDataProvider.setAllWidgets(widgets));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user