mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-02-19 18:58:19 +00:00
Merge "Add mStartState to determine if user swipes up from Home." into ub-launcher3-edmonton
This commit is contained in:
committed by
Android (Google) Code Review
commit
39ac161095
@@ -72,6 +72,7 @@ public abstract class AbstractStateChangeTouchController
|
||||
private boolean mNoIntercept;
|
||||
protected int mStartContainerType;
|
||||
|
||||
protected LauncherState mStartState;
|
||||
protected LauncherState mFromState;
|
||||
protected LauncherState mToState;
|
||||
protected AnimatorPlaybackController mCurrentAnimation;
|
||||
@@ -235,8 +236,10 @@ public abstract class AbstractStateChangeTouchController
|
||||
|
||||
@Override
|
||||
public void onDragStart(boolean start) {
|
||||
mStartState = mLauncher.getStateManager().getState();
|
||||
if (mCurrentAnimation == null) {
|
||||
mFromState = mToState = null;
|
||||
mFromState = mStartState;
|
||||
mToState = null;
|
||||
mAtomicComponentsController = null;
|
||||
reinitCurrentAnimation(false, mDetector.wasInitialTouchPositive());
|
||||
mDisplacementShift = 0;
|
||||
|
||||
Reference in New Issue
Block a user