Index: chrome/android/java/src/org/chromium/chrome/browser/suggestions/TileGrid.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/suggestions/TileGrid.java b/chrome/android/java/src/org/chromium/chrome/browser/suggestions/TileGrid.java |
index 11f5d1e75bffcc4c4c85ef2992fa862626e280c2..5a2563f569c79bea63eddf8bf461768bbd963d6f 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/suggestions/TileGrid.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/suggestions/TileGrid.java |
@@ -107,11 +107,13 @@ public class TileGrid extends OptionalLeaf implements TileGroup.Observer { |
super(LayoutInflater.from(parentView.getContext()) |
.inflate(R.layout.suggestions_site_tile_grid, parentView, false)); |
mLayout = (TileGridLayout) itemView; |
+ mLayout.setMaxRows(getMaxTileRows()); |
+ mLayout.setMaxColumns(MAX_TILE_COLUMNS); |
} |
public void onBindViewHolder(TileGroup tileGroup) { |
- mLayout.setMaxRows(getMaxTileRows()); |
- tileGroup.renderTileViews(mLayout, /* trackLoadTasks = */ false); |
+ tileGroup.renderTileViews(mLayout, /* trackLoadTasks = */ false, |
+ /* condensed = */ false); |
} |
public void updateIconView(Tile tile) { |