QS: Fix expanding on closing detail

am: dfb851c6cf

Change-Id: I6467a5456782360276157ed9e776837411806d63
This commit is contained in:
Jason Monk
2016-08-08 15:39:49 +00:00
committed by android-build-merger

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();
}