Merge "Fixed a crash where the overflow number wasn't initialized" into nyc-dev
This commit is contained in:
@@ -277,6 +277,10 @@ public class ExpandableNotificationRow extends ActivatableNotificationView {
|
|||||||
int intrinsicBefore = getIntrinsicHeight();
|
int intrinsicBefore = getIntrinsicHeight();
|
||||||
mIsHeadsUp = isHeadsUp;
|
mIsHeadsUp = isHeadsUp;
|
||||||
mPrivateLayout.setHeadsUp(isHeadsUp);
|
mPrivateLayout.setHeadsUp(isHeadsUp);
|
||||||
|
if (mIsSummaryWithChildren) {
|
||||||
|
// The overflow might change since we allow more lines as HUN.
|
||||||
|
mChildrenContainer.updateGroupOverflow();
|
||||||
|
}
|
||||||
if (intrinsicBefore != getIntrinsicHeight()) {
|
if (intrinsicBefore != getIntrinsicHeight()) {
|
||||||
notifyHeightChanged(false /* needsAnimation */);
|
notifyHeightChanged(false /* needsAnimation */);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -139,7 +139,9 @@ public class NotificationChildrenContainer extends ViewGroup {
|
|||||||
for (int i = 0; i < childCount; i++) {
|
for (int i = 0; i < childCount; i++) {
|
||||||
ExpandableNotificationRow child = mChildren.get(i);
|
ExpandableNotificationRow child = mChildren.get(i);
|
||||||
boolean isOverflow = i == overflowIndex;
|
boolean isOverflow = i == overflowIndex;
|
||||||
child.setSingleLineWidthIndention(isOverflow ? mOverflowNumber.getMeasuredWidth() : 0);
|
child.setSingleLineWidthIndention(isOverflow && mOverflowNumber != null
|
||||||
|
? mOverflowNumber.getMeasuredWidth()
|
||||||
|
: 0);
|
||||||
child.measure(widthMeasureSpec, newHeightSpec);
|
child.measure(widthMeasureSpec, newHeightSpec);
|
||||||
height += child.getMeasuredHeight();
|
height += child.getMeasuredHeight();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user