Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b41b2f6f authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a crash where the overflow number wasn't initialized

Change-Id: I2df85055d5670af3a6c78a2b62bc62c9297ead78
Fixes: 28008437
parent 7599878c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -277,6 +277,10 @@ public class ExpandableNotificationRow extends ActivatableNotificationView {
        int intrinsicBefore = getIntrinsicHeight();
        mIsHeadsUp = isHeadsUp;
        mPrivateLayout.setHeadsUp(isHeadsUp);
        if (mIsSummaryWithChildren) {
            // The overflow might change since we allow more lines as HUN.
            mChildrenContainer.updateGroupOverflow();
        }
        if (intrinsicBefore != getIntrinsicHeight()) {
            notifyHeightChanged(false  /* needsAnimation */);
        }
+3 −1
Original line number Diff line number Diff line
@@ -139,7 +139,9 @@ public class NotificationChildrenContainer extends ViewGroup {
        for (int i = 0; i < childCount; i++) {
            ExpandableNotificationRow child = mChildren.get(i);
            boolean isOverflow = i == overflowIndex;
            child.setSingleLineWidthIndention(isOverflow ? mOverflowNumber.getMeasuredWidth() : 0);
            child.setSingleLineWidthIndention(isOverflow && mOverflowNumber != null
                    ? mOverflowNumber.getMeasuredWidth()
                    : 0);
            child.measure(widthMeasureSpec, newHeightSpec);
            height += child.getMeasuredHeight();