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

Commit 315585d6 authored by Adam Cohen's avatar Adam Cohen Committed by Android (Google) Code Review
Browse files

Merge "Fix issue where can't interact with Workspace while App => Home is...

Merge "Fix issue where can't interact with Workspace while App => Home is running" into ub-launcher3-qt-r1-dev
parents 4610ce40 ab6be317
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -472,6 +472,11 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
        }
    }

    @Override
    protected boolean shouldBlockGestures(MotionEvent ev) {
        return Utilities.shouldDisableGestures(ev);
    }

    @Override
    public boolean onTouchEvent(MotionEvent ev) {
        super.onTouchEvent(ev);
+6 −3
Original line number Diff line number Diff line
@@ -16,7 +16,6 @@

package com.android.launcher3;

import static com.android.launcher3.Utilities.shouldDisableGestures;
import static com.android.launcher3.compat.AccessibilityManagerCompat.isAccessibilityEnabled;
import static com.android.launcher3.compat.AccessibilityManagerCompat.isObservedEventType;
import static com.android.launcher3.config.FeatureFlags.QUICKSTEP_SPRINGS;
@@ -847,7 +846,7 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
         */

        // Skip touch handling if there are no pages to swipe
        if (getChildCount() <= 0 || shouldDisableGestures(ev)) return false;
        if (getChildCount() <= 0 || shouldBlockGestures(ev)) return false;

        acquireVelocityTrackerAndAddMovement(ev);

@@ -1092,10 +1091,14 @@ public abstract class PagedView<T extends View & PageIndicator> extends ViewGrou
        mAllowOverScroll = enable;
    }

    protected boolean shouldBlockGestures(MotionEvent ev) {
        return false;
    }

    @Override
    public boolean onTouchEvent(MotionEvent ev) {
        // Skip touch handling if there are no pages to swipe
        if (getChildCount() <= 0 || shouldDisableGestures(ev)) return false;
        if (getChildCount() <= 0 || shouldBlockGestures(ev)) return false;

        acquireVelocityTrackerAndAddMovement(ev);