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

Commit 8599a335 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix listening states for two-finger and fast-double swipe

Bug: 16655660
Change-Id: I46d826edc901e08eb1513fe87de2f63228581617
parent d7c1fae1
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -602,6 +602,10 @@ public class NotificationPanelView extends PanelView implements
                && event.getY(event.getActionIndex()) < mStatusBarMinHeight) {
            mTwoFingerQsExpand = true;
            requestPanelHeightUpdate();

            // Normally, we start listening when the panel is expanded, but here we need to start
            // earlier so the state is already up to date when dragging down.
            setListening(true);
        }
        super.onTouchEvent(event);
        return true;
@@ -621,6 +625,11 @@ public class NotificationPanelView extends PanelView implements
            mInitialHeightOnTouch = mQsExpansionHeight;
            mInitialTouchY = event.getX();
            mInitialTouchX = event.getY();

            // If we interrupt an expansion gesture here, make sure to update the state correctly.
            if (mIsExpanding) {
                onExpandingFinished();
            }
        }
    }