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

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14633970

Change-Id: I44dee3f71bf016a747f4c054ca03a04354bd8eff
This commit is contained in:
Lyn Han
2021-05-20 04:32:22 +00:00
committed by Automerger Merge Worker

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()) {