summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLyn Han <lynhan@google.com>2022-04-15 17:29:39 -0400
committerLyn Han <lynhan@google.com>2022-04-15 17:29:39 -0400
commit2846fabef31e9ef60eb2e37329bc352a77e2da53 (patch)
tree5dbbf08ae975437aa8d5d6976086e4e0998d7cc1
parent565d2b1b855a6647c5995f83b9b8e22394a74dfe (diff)
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
-rw-r--r--packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ExpandableNotificationRow.java3
1 files changed, 0 insertions, 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 efb46b9689d3..7245cb246932 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();