QS: Fix expanding on closing detail

Change-Id: I21f3baf76c956ee3679bd33cbde9859f181cc7eb
Fixes: 30215042
This commit is contained in:
Jason Monk
2016-08-02 13:49:43 -04:00
parent 41e185e73b
commit dfb851c6cf

View File

@@ -146,7 +146,9 @@ public class QSContainer extends FrameLayout {
return getHeight();
}
if (mQSDetail.isClosingDetail()) {
return mQSPanel.getGridHeight() + mHeader.getCollapsedHeight() + getPaddingBottom();
int panelHeight = ((LayoutParams) mQSPanel.getLayoutParams()).topMargin
+ mQSPanel.getMeasuredHeight();
return panelHeight + getPaddingBottom();
} else {
return getMeasuredHeight();
}