From 91f449c064b46782c9b14ca4fc42e6c57d6518cd Mon Sep 17 00:00:00 2001 From: Lucas Dupin Date: Tue, 26 Oct 2021 18:09:49 -0700 Subject: [PATCH] Fix qs translation on split shade lock screen It was abruptly jumping at the end of the animation, and cut off during pull down. Test: pull down shade from LS, home, on split and regular shade Fixes: 203750637 Change-Id: I800c3d7a5ea2da8db0d5c37182764c4228bc4980 --- .../statusbar/phone/NotificationPanelViewController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java index 233acfe601a72..fd0bcd419a26f 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java @@ -2376,7 +2376,7 @@ public class NotificationPanelViewController extends PanelViewController { // qsTranslation should only be positive during pulse expansion because it's // already translating in from the top qsTranslation = Math.max(0, (top - mQs.getHeader().getHeight()) / 2.0f); - } else { + } else if (!mShouldUseSplitNotificationShade) { qsTranslation = (top - mQs.getHeader().getHeight()) * QS_PARALLAX_AMOUNT; } }