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

Commit f2267af0 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed an issue where the qs position was wrong while bypassing

The header wasn't translated at all in the default state, but
only when pulse expanding. Changing it to also be translated
by default fixes this.

Fixes: 187316916
Test: use bypass, observe no clipping
Change-Id: Ic20d717affa0a16f69480e472795e9cef2c692f3
parent d245565a
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));