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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user