Removing unnecessary view inflation

Using a predefined height for app icons, and for everything else,
inflating it on demand

Change-Id: I7520802f30d2111d63fe336b09f6264201cdea61
This commit is contained in:
Sunny Goyal committed 2018-02-06 11:00:09 -08:00
1 parent 5a090a7242
commit ee047871eb
2 files changed
+19 -33

No files matched your search

@@ -541,7 +541,6 @@ public class AllAppsContainerView extends RelativeLayout implements DragSource,
}
FocusedItemDecorator focusedItemDecorator = new FocusedItemDecorator(recyclerView);
recyclerView.addItemDecoration(focusedItemDecorator);
recyclerView.preMeasureViews(adapter);
adapter.setIconFocusListener(focusedItemDecorator.getFocusListener());
applyVerticalFadingEdgeEnabled(verticalFadingEdge);
applyPadding();