diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java index e4005062f3dd2..5f6d958ed83e4 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/ExpandableNotificationRow.java @@ -1175,7 +1175,20 @@ public class ExpandableNotificationRow extends ActivatableNotificationView { * @see #canViewBeDismissed() */ public boolean isClearable() { - return mStatusBarNotification != null && mStatusBarNotification.isClearable(); + if (mStatusBarNotification == null || !mStatusBarNotification.isClearable()) { + return false; + } + if (mIsSummaryWithChildren) { + List notificationChildren = + mChildrenContainer.getNotificationChildren(); + for (int i = 0; i < notificationChildren.size(); i++) { + ExpandableNotificationRow child = notificationChildren.get(i); + if (!child.isClearable()) { + return false; + } + } + } + return true; } @Override