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

Commit 3785f0a2 authored by Jiaquan He's avatar Jiaquan He Committed by android-build-merger
Browse files

DO NOT MERGE - Disabled swiping in Grid-based Recents.

am: 620aebab

Change-Id: I24914bfe923ec251adff8c931c32398c013ac581
parents 5be781d8 620aebab
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -168,7 +168,7 @@ class TaskStackViewTouchHandler implements SwipeHelper.Callback {
    /** Touch preprocessing for handling below */
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        // Pass through to swipe helper if we are swiping
        mInterceptedBySwipeHelper = mSwipeHelper.onInterceptTouchEvent(ev);
        mInterceptedBySwipeHelper = isSwipingEnabled() && mSwipeHelper.onInterceptTouchEvent(ev);
        if (mInterceptedBySwipeHelper) {
            return true;
        }
@@ -680,4 +680,11 @@ class TaskStackViewTouchHandler implements SwipeHelper.Callback {
    public float getScaledDismissSize() {
        return 1.5f * Math.max(mSv.getWidth(), mSv.getHeight());
    }

    /**
     * Returns whether swiping is enabled.
     */
    private boolean isSwipingEnabled() {
        return !mSv.useGridLayout();
    }
}