Removing some device profile dependencies in view contructors

Bug: 71709920
Change-Id: I13e33dceaeff71e3fb7bbb93f24be69c17d6da96
This commit is contained in:
Sunny Goyal
2018-01-16 14:17:20 -08:00
parent 000e0a1480
commit 12069e6cbf
5 changed files with 19 additions and 27 deletions

View File

@@ -275,8 +275,6 @@ public class AllAppsContainerView extends RelativeLayout implements DragSource,
@Override
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
DeviceProfile grid = mLauncher.getDeviceProfile();
// Update the number of items in the grid before we measure the view
grid.updateAppsViewNumCols();
if (mNumAppsPerRow != grid.inv.numColumns ||
mNumPredictedAppsPerRow != grid.inv.numColumns) {