Add mStartState to determine if user swipes up from Home.

Bug: 80146880
Test: Manual test
Change-Id: Ia0743bff3f2a5b3998a798743138b012ec461a94
This commit is contained in:
Tracy Zhou committed 2018-05-22 16:25:37 -07:00
1 parent 8417a7b514
commit 788c051493
3 files changed
+6 -3

No files matched your search

@@ -73,6 +73,7 @@ public abstract class AbstractStateChangeTouchController
private boolean mNoIntercept;
protected int mStartContainerType;
protected LauncherState mStartState;
protected LauncherState mFromState;
protected LauncherState mToState;
protected AnimatorPlaybackController mCurrentAnimation;
@@ -238,8 +239,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;