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

Commit c6670cc4 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

am: e43e5fd0

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


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


    private boolean handleTouchEvent(MotionEvent event) {
    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();
        final ButtonDispatcher homeButton = mNavigationBarView.getHomeButton();
        if (mGestureDetector.onTouchEvent(event)) {
        if (mGestureDetector.onTouchEvent(event)) {
            // If the fling has been handled on UP, then skip proxying the UP
            // If the fling has been handled on UP, then skip proxying the UP