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

Commit e4918c2b authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Apply correct squishiness when dragging down on LS

NPVC would pass 1 instead of the expected value to QSFragment, due to
being unaware of the lock screen expansion amount.

Bug: 214044434
Test: manually pull down QS on lock screen when media is present
Change-Id: I7d742eaad021c183decd7c7cabfd2638e94361fa
parent c5900ec5
Loading
Loading
Loading
Loading
+9 −3
Original line number Diff line number Diff line
@@ -2440,9 +2440,15 @@ public class NotificationPanelViewController extends PanelViewController {

    private void updateQsExpansion() {
        if (mQs == null) return;
        final float squishiness =
                mQsExpandImmediate || mQsExpanded ? 1f : mNotificationStackScrollLayoutController
        final float squishiness;
        if (mQsExpandImmediate || mQsExpanded) {
            squishiness = 1;
        } else if (mLockscreenShadeTransitionController.getQSDragProgress() > 0) {
            squishiness = mLockscreenShadeTransitionController.getQSDragProgress();
        } else {
            squishiness = mNotificationStackScrollLayoutController
                    .getNotificationSquishinessFraction();
        }
        final float qsExpansionFraction = computeQsExpansionFraction();
        final float adjustedExpansionFraction = mShouldUseSplitNotificationShade
                ? 1f : computeQsExpansionFraction();