From 6b7fc0a0c0ef3e15f64c9e6dd3fa4a7095810bfb Mon Sep 17 00:00:00 2001 From: Fabian Kozynski Date: Mon, 6 Dec 2021 14:42:43 -0500 Subject: [PATCH] Fix size of last page of QSPanel Sizing should always use the size of page 0. Test: manual Fixes: 209476721 Change-Id: Ia01d48ceeef46271535bca24924b9b47367cc92a --- .../SystemUI/src/com/android/systemui/qs/PagedTileLayout.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; }