diff --git a/packages/SystemUI/src/com/android/systemui/qs/PagedTileLayout.java b/packages/SystemUI/src/com/android/systemui/qs/PagedTileLayout.java index c8551141f96e3..3e2da7204c057 100644 --- a/packages/SystemUI/src/com/android/systemui/qs/PagedTileLayout.java +++ b/packages/SystemUI/src/com/android/systemui/qs/PagedTileLayout.java @@ -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; }