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
2018-01-23 14:26:57 -08:00
parent 5a090a7242
commit ee047871eb
2 changed files with 19 additions and 33 deletions

View File

@@ -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();