Merge "Fix pinched short notification at bottom of lockscreen." into tm-qpr-dev am: 2f63c77bca
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19193766 Change-Id: I43c561db47e1fd08fe905ccb8b2fa05332455fd2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -398,7 +398,14 @@ public class NotificationShelf extends ActivatableNotificationView implements
|
||||
if (child instanceof ActivatableNotificationView) {
|
||||
ActivatableNotificationView anv =
|
||||
(ActivatableNotificationView) child;
|
||||
updateCornerRoundnessOnScroll(anv, viewStart, shelfStart);
|
||||
// Because we show whole notifications on the lockscreen, the bottom notification is
|
||||
// always "just about to enter the shelf" by normal scrolling rules. This is fine
|
||||
// if the shelf is visible, but if the shelf is hidden, it causes incorrect curling.
|
||||
// notificationClipEnd handles the discrepancy between a visible and hidden shelf,
|
||||
// so we use that when on the keyguard (and while animating away) to reduce curling.
|
||||
final float keyguardSafeShelfStart =
|
||||
mAmbientState.isOnKeyguard() ? notificationClipEnd : shelfStart;
|
||||
updateCornerRoundnessOnScroll(anv, viewStart, keyguardSafeShelfStart);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user