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
This commit is contained in:
Lucas Dupin
2021-10-26 18:09:49 -07:00
parent 0566e1ec5b
commit 91f449c064

View File

@@ -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;
}
}