Merge "Fixed a bug where notifications could overlap" into nyc-dev
am: 33e2fc481c
* commit '33e2fc481c05e0f9c956fc81a999a2b704c21564':
Fixed a bug where notifications could overlap
Change-Id: Ib93924d2c6828bca840a4529531f64a6278b4af0
This commit is contained in:
@@ -177,6 +177,13 @@ public class NotificationContentView extends FrameLayout {
|
||||
if (updateContractedHeaderWidth()) {
|
||||
mContractedChild.measure(widthMeasureSpec, heightSpec);
|
||||
}
|
||||
if (mExpandedChild != null
|
||||
&& mContractedChild.getMeasuredHeight() > mExpandedChild.getMeasuredHeight()) {
|
||||
// the Expanded child is smaller then the collapsed. Let's remeasure it.
|
||||
heightSpec = MeasureSpec.makeMeasureSpec(mContractedChild.getMeasuredHeight(),
|
||||
MeasureSpec.EXACTLY);
|
||||
mExpandedChild.measure(widthMeasureSpec, heightSpec);
|
||||
}
|
||||
}
|
||||
if (mHeadsUpChild != null) {
|
||||
int size = Math.min(maxSize, mHeadsUpHeight);
|
||||
|
||||
Reference in New Issue
Block a user