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

Commit e43e5fd0 authored by Matthew Ng's avatar Matthew Ng Committed by android-build-merger
Browse files

Merge changes from topic "centralize-quick-3s" into pi-dev

am: 6a9088e0

Change-Id: I8b066ae3cc23edd6cc7e5442bc5151985df51244
parents 838386fb 6a9088e0
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -200,12 +200,6 @@ public class QuickStepController extends GestureDetector.SimpleOnGestureListener
     */
    @Override
    public boolean onInterceptTouchEvent(MotionEvent event) {
        if (!mNavigationBarView.isQuickScrubEnabled()
                && !mNavigationBarView.isQuickStepSwipeUpEnabled()) {
            mNavigationBarView.getHomeButton().setDelayTouchFeedback(false /* delay */);
            return false;
        }
        mNavigationBarView.requestUnbufferedDispatch(event);
        return handleTouchEvent(event);
    }

@@ -222,6 +216,13 @@ public class QuickStepController extends GestureDetector.SimpleOnGestureListener
    }

    private boolean handleTouchEvent(MotionEvent event) {
        if (!mNavigationBarView.isQuickScrubEnabled()
                && !mNavigationBarView.isQuickStepSwipeUpEnabled()) {
            mNavigationBarView.getHomeButton().setDelayTouchFeedback(false /* delay */);
            return false;
        }
        mNavigationBarView.requestUnbufferedDispatch(event);

        final ButtonDispatcher homeButton = mNavigationBarView.getHomeButton();
        if (mGestureDetector.onTouchEvent(event)) {
            // If the fling has been handled on UP, then skip proxying the UP