Bug 760956 - Part 7: only add single blank tile to top sites grid r=rnewman
MozReview-Commit-ID: 42DuTEJZgum
--- a/mobile/android/base/java/org/mozilla/gecko/db/LocalBrowserDB.java
+++ b/mobile/android/base/java/org/mozilla/gecko/db/LocalBrowserDB.java
@@ -1677,20 +1677,18 @@ public class LocalBrowserDB implements B
}
MatrixCursor blanksCursor = new MatrixCursor(new String[] {
Bookmarks._ID,
Bookmarks.URL,
Bookmarks.TITLE,
Bookmarks.TYPE});
- for (int i = 0; i < blanksRequired; i++) {
- final MatrixCursor.RowBuilder rb = blanksCursor.newRow();
- rb.add(-1);
- rb.add("");
- rb.add("");
- rb.add(TopSites.TYPE_BLANK);
- }
+ final MatrixCursor.RowBuilder rb = blanksCursor.newRow();
+ rb.add(-1);
+ rb.add("");
+ rb.add("");
+ rb.add(TopSites.TYPE_BLANK);
return new MergeCursor(new Cursor[] {topSitesCursor, blanksCursor});
}
}