Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 41aaa99f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix number of pages in PagedTileLayout" into qt-qpr1-dev

parents fa6f50e1 492be7cc
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -248,7 +248,9 @@ public class PagedTileLayout extends ViewPager implements QSTileLayout {
        int numPages = Math.max(nTiles / mPages.get(0).maxTiles(), 1);

        // Add one more not full page if needed
        numPages += (nTiles % mPages.get(0).maxTiles() == 0 ? 0 : 1);
        if (nTiles > numPages * mPages.get(0).maxTiles()) {
            numPages++;
        }

        final int NP = mPages.size();
        for (int i = 0; i < NP; i++) {