Merge "QS: Fix expanding on closing detail" into nyc-mr1-dev

This commit is contained in:
Jason Monk
2016-08-08 15:32:23 +00:00
committed by Android (Google) Code Review

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