Merge "Fix size of last page of QSPanel"
This commit is contained in:
committed by
Android (Google) Code Review
commit
e1197faa4a
@@ -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