Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3014)

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/suggestions/TileGrid.java

Issue 2714723002: Add feature for condensed NTP tiles. (Closed)
Patch Set: Cleanups. Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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) {

Powered by Google App Engine
This is Rietveld 408576698