Fix size of last page of QSPanel

Sizing should always use the size of page 0.

Test: manual
Fixes: 209476721
Change-Id: Ia01d48ceeef46271535bca24924b9b47367cc92a
This commit is contained in:
Fabian Kozynski
2021-12-06 14:42:43 -05:00
parent 9a50b528d8
commit 6b7fc0a0c0

View File

@@ -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;
}