Rearranging the code structure to allow replacing state logic.

Change-Id: I6f83d0f77045ba189f02dd465bf70ffc2a239aa1
This commit is contained in:
Sunny Goyal
2017-11-06 13:00:42 -08:00
parent 4dcc2617f5
commit 85525173ce
14 changed files with 130 additions and 81 deletions

View File

@@ -75,7 +75,7 @@ public class VerticalSwipeController extends AnimatorListenerAdapter
private boolean canInterceptTouch(MotionEvent ev) {
if (!mLauncher.isInState(NORMAL) && !mLauncher.isInState(ALL_APPS)) {
// Don't listen for the pinch gesture if on all apps, widget picker, -1, etc.
// Don't listen for the swipe gesture if we are already in some other state.
return false;
}
if (mCurrentAnimation != null) {