Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6f406540 authored by Selim Cinek's avatar Selim Cinek Committed by Automerger Merge Worker
Browse files

Merge "Fixed an issue where the qs position was wrong while bypassing" into sc-dev am: 2ce2914c

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

Change-Id: Ie67038d31dcf37fd5275f56cd5df128a847ce1f5
parents 7051031f 2ce2914c
Loading
Loading
Loading
Loading
+12 −9
Original line number Diff line number Diff line
@@ -2574,8 +2574,8 @@ public class NotificationPanelViewController extends PanelViewController {
            // Small parallax as we pull down and clip QS
            startHeight = -mQsExpansionHeight * 0.2f;
        }
        if (mKeyguardBypassController.getBypassEnabled() && isOnKeyguard()
                && mNotificationStackScrollLayoutController.isPulseExpanding()) {
        if (mKeyguardBypassController.getBypassEnabled() && isOnKeyguard()) {
            if (mNotificationStackScrollLayoutController.isPulseExpanding()) {
                if (!mPulseExpansionHandler.isExpanding()
                        && !mPulseExpansionHandler.getLeavingLockscreen()) {
                    // If we aborted the expansion we need to make sure the header doesn't reappear
@@ -2585,6 +2585,9 @@ public class NotificationPanelViewController extends PanelViewController {
                    appearAmount = mNotificationStackScrollLayoutController
                            .calculateAppearFractionBypass();
                }
            } else {
                appearAmount = 0.0f;
            }
            startHeight = -mQs.getQsMinExpansionHeight();
        }
        float translation = MathUtils.lerp(startHeight, 0, Math.min(1.0f, appearAmount));