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

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

Issue 2714723002: Add feature for condensed NTP tiles. (Closed)
Patch Set: 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 90d366dddf11dc7f1f493f6795d2ec96f8e1b4b1..aa753fbbc592d6d1769c9698c0f55e1a8532303d 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
@@ -103,7 +103,9 @@ public class TileGrid extends OptionalLeaf implements TileGroup.Observer {
public void onBindViewHolder(TileGroup tileGroup) {
mLayout.setMaxRows(getMaxTileRows());
- tileGroup.renderTileViews(mLayout, /* trackLoadTasks = */ false, getTileTitleLines());
+ mLayout.setMaxColumns(MAX_TILE_COLUMNS);
+ tileGroup.renderTileViews(mLayout, /* trackLoadTasks = */ false, getTileTitleLines(),
+ /* condensed = */ false);
}
public void updateIconView(Tile tile) {

Powered by Google App Engine
This is Rietveld 408576698