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

Commit 4544af19 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "[Overview Actions] Disable touching on the empty area when recent is...

Merge "[Overview Actions] Disable touching on the empty area when recent is modal." into ub-launcher3-rvc-dev
parents c6d8838c 2d9f8284
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -638,7 +638,7 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
            case MotionEvent.ACTION_DOWN:
                // Touch down anywhere but the deadzone around the visible clear all button and
                // between the task views will start home on touch up
                if (!isHandlingTouch()) {
                if (!isHandlingTouch() && !isModal()) {
                    if (mShowEmptyMessage) {
                        mTouchDownToStartHome = true;
                    } else {
@@ -666,7 +666,7 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
    @Override
    protected void determineScrollingStart(MotionEvent ev, float touchSlopScale) {
        // Enables swiping to the left or right only if the task overlay is not modal.
        if (mTaskModalness == 0f) {
        if (!isModal()) {
            super.determineScrollingStart(ev, touchSlopScale);
        }
    }
@@ -737,6 +737,10 @@ public abstract class RecentsView<T extends BaseActivity> extends PagedView impl
        updateEnabledOverlays();
    }

    private boolean isModal() {
        return mTaskModalness > 0;
    }

    private void removeTasksViewsAndClearAllButton() {
        for (int i = getTaskViewCount() - 1; i >= 0; i--) {
            removeView(getTaskViewAt(i));