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
This commit is contained in:
Lyn Han
2022-04-15 17:29:39 -04:00
parent 565d2b1b85
commit 2846fabef3

View File

@@ -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();