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

Commit 6b7fc0a0 authored by Fabian Kozynski's avatar Fabian Kozynski
Browse files

Fix size of last page of QSPanel

Sizing should always use the size of page 0.

Test: manual
Fixes: 209476721
Change-Id: Ia01d48ceeef46271535bca24924b9b47367cc92a
parent 9a50b528
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -114,7 +114,8 @@ public class PagedTileLayout extends ViewPager implements QSTileLayout {

    @Override
    public int getTilesHeight() {
        TileLayout tileLayout = mPages.get(getCurrentItem());
        // Use the first page as that is the maximum height we need to show.
        TileLayout tileLayout = mPages.get(0);
        if (tileLayout == null) {
            return 0;
        }