Merge "Fix heads up notification corner roundness" into sc-dev

This commit is contained in:
Lyn Han
2021-05-20 04:24:49 +00:00
committed by Android (Google) Code Review

View File

@@ -336,8 +336,13 @@ public class NotificationShelf extends ActivatableNotificationView implements
ActivatableNotificationView anv =
(ActivatableNotificationView) child;
final boolean isUnlockedHeadsUp = !mAmbientState.isOnKeyguard()
&& !mAmbientState.isShadeExpanded()
&& child instanceof ExpandableView
&& ((ExpandableNotificationRow) child).isHeadsUp();
if (viewStart < shelfStart
&& !mHostLayoutController.isViewAffectedBySwipe(anv)
&& !isUnlockedHeadsUp
&& !mAmbientState.isPulsing()
&& !mAmbientState.isDozing()) {