diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java index 760f4328e4e33..23e9e9073f6cd 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java @@ -1097,7 +1097,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { mIsSystemExpanded = expand; notifyHeightChanged(false /* needsAnimation */); logExpansionEvent(false, wasExpanded); - if (mChildrenContainer != null) { + if (mIsSummaryWithChildren) { mChildrenContainer.updateGroupOverflow(); } } @@ -1172,7 +1172,7 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { } public void updateChildrenHeaderAppearance() { - if (mChildrenContainer != null) { + if (mIsSummaryWithChildren) { mChildrenContainer.updateChildrenHeaderAppearance(); } }