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

Commit 4325a56f authored by Hyunyoung Song's avatar Hyunyoung Song
Browse files

Cancel animation whenever MotionEvent.ACTION_DOWN is detected

Change-Id: I130d05907068ecbec12e09207c7ca2e171e90926
parent 1c72b72b
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -97,6 +97,9 @@ public class AllAppsTransitionController implements TouchController, VerticalPul
            } else if (!mLauncher.isAllAppsVisible() && !shouldPossiblyIntercept(ev)) {
                mNoIntercept = true;
            } else {
                // This controller is now going to handle all the touch events.
                // First cancel any animation that is in progress.
                cancelAnimation();
                // Now figure out which direction scroll events the controller will start
                // calling the callbacks.
                int conditionsToReportScroll = 0;
@@ -162,7 +165,6 @@ public class AllAppsTransitionController implements TouchController, VerticalPul

    @Override
    public void onScrollStart(boolean start) {
        cancelAnimation();
        mCurrentAnimation = LauncherAnimUtils.createAnimatorSet();
        mShiftStart = mAppsView.getTranslationY();
        preparePull(start);