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

Commit f251391e authored by Michał Brzeziński's avatar Michał Brzeziński Committed by Android (Google) Code Review
Browse files

Merge "Fixing QS expanding in split shade when swipe happens on notifications" into sc-dev

parents 40f1d1a2 b8836060
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -3708,6 +3708,12 @@ public class NotificationPanelViewController extends PanelViewController {

        @Override
        public void flingTopOverscroll(float velocity, boolean open) {
            // in split shade mode we want to expand/collapse QS only when touch happens within QS
            if (mShouldUseSplitNotificationShade
                    && (mInitialTouchX < mQsFrame.getX()
                        || mInitialTouchX > mQsFrame.getX() + mQsFrame.getWidth())) {
                return;
            }
            mLastOverscroll = 0f;
            mQsExpansionFromOverscroll = false;
            setQsExpansion(mQsExpansionHeight);