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

Commit ea045e75 authored by Hyunyoung Song's avatar Hyunyoung Song Committed by android-build-merger
Browse files

Fixing two critical bugs in all apps transition controller

am: 0a9c092c

Change-Id: I115b7bc6d165dc9d5e73e1878b96d194bfc62da7
parents abb607fc 0a9c092c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3101,7 +3101,6 @@ public class Launcher extends Activity
                    mWorkspace.startReordering(v);
                } else {
                    showOverviewMode(true);
                    mHotseat.requestDisallowInterceptTouchEvent(true);
                }
            } else {
                final boolean isAllAppsButton =
@@ -3229,6 +3228,9 @@ public class Launcher extends Activity
        mStateTransitionAnimation.startAnimationToWorkspace(mState, mWorkspace.getState(),
                Workspace.State.OVERVIEW, animated, postAnimRunnable);
        mState = State.WORKSPACE;
        // If animated from long press, then don't allow any of the controller in the drag
        // layer to intercept any remaining touch.
        mWorkspace.requestDisallowInterceptTouchEvent(animated);
    }

    /**
+3 −4
Original line number Diff line number Diff line
@@ -109,7 +109,7 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
    public boolean onInterceptTouchEvent(MotionEvent ev) {
        if (ev.getAction() == MotionEvent.ACTION_DOWN) {
            mNoIntercept = false;
            if (mLauncher.getWorkspace().isInOverviewMode() || mLauncher.isWidgetsViewVisible()) {
            if (!mLauncher.isAllAppsVisible() && mLauncher.getWorkspace().workspaceInModalState()) {
                mNoIntercept = true;
            } else if (mLauncher.isAllAppsVisible() &&
                    !mAppsView.shouldContainerScroll(ev)) {
@@ -160,9 +160,8 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
                    return true;
                }
            } else {
                if ((mLauncher.getDragLayer().isEventOverHotseat(ev)
                        || mLauncher.getDragLayer().isEventOverPageIndicator(ev))
                        && !grid.isVerticalBarLayout()) {
                if (mLauncher.getDragLayer().isEventOverHotseat(ev) ||
                        mLauncher.getDragLayer().isEventOverPageIndicator(ev)) {
                    return true;
                }
            }