Bug 1252499 - only insert blank tile when really needed r=liuche

MozReview-Commit-ID: 5O7gUBDl1D4
This commit is contained in:
Andrzej Hunt 2016-03-01 09:32:16 -08:00
parent 3c2efbc0cf
commit 5ce116ce22

View File

@ -1631,7 +1631,7 @@ public class LocalBrowserDB implements BrowserDB {
// that inside out topsites SQL query would be difficult given the other processing we're already doing there).
final int blanksRequired = suggestedRangeLimit - topSitesCursor.getCount();
if (blanksRequired < 0) {
if (blanksRequired <= 0) {
return topSitesCursor;
}