From 2846fabef31e9ef60eb2e37329bc352a77e2da53 Mon Sep 17 00:00:00 2001 From: Lyn Han Date: Fri, 15 Apr 2022 17:29:39 -0400 Subject: [PATCH] Fix clipped notifications in sensitive mode Remove unneeded return when mPublicLayout does not have children Fixes: 228112945 Test: toggle between show all/sensitive/show none press power button twice to go to lockscreen => correct lockscreen notification layouts shown Change-Id: I24147461875d7e2322f790b57889c75f1aee5016 --- .../statusbar/notification/row/ExpandableNotificationRow.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java index efb46b9689d3a..7245cb2469325 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java @@ -2658,9 +2658,6 @@ public class ExpandableNotificationRow extends ActivatableNotificationView return; } - // bail out if no public version - if (mPublicLayout.getChildCount() == 0) return; - if (!animated) { mPublicLayout.animate().cancel(); mPrivateLayout.animate().cancel();