mirror of
https://github.com/LawnchairLauncher/lawnchair.git
synced 2026-03-02 17:06:49 +00:00
Handle split selection when animation is disabled
* Consolidate setState() and setStateWithAnimation() to be handled in the same manner * If no animation, we run the created PendingAnimation right away Fixes: 209935590 Test: Tested w/ and w/o animation Change-Id: I1d6fdba21761b6721e6bd52234016178547cd437
This commit is contained in:
@@ -64,7 +64,6 @@ public class SplitSelectStateController {
|
||||
private @StagePosition int mStagePosition;
|
||||
private Task mInitialTask;
|
||||
private Task mSecondTask;
|
||||
private Rect mInitialBounds;
|
||||
private boolean mRecentsAnimationRunning;
|
||||
/** If not null, this is the TaskView we want to launch from */
|
||||
@Nullable
|
||||
@@ -86,7 +85,6 @@ public class SplitSelectStateController {
|
||||
Rect initialBounds) {
|
||||
mInitialTask = task;
|
||||
mStagePosition = stagePosition;
|
||||
mInitialBounds = initialBounds;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -229,7 +227,6 @@ public class SplitSelectStateController {
|
||||
mInitialTask = null;
|
||||
mSecondTask = null;
|
||||
mStagePosition = SplitConfigurationOptions.STAGE_POSITION_UNDEFINED;
|
||||
mInitialBounds = null;
|
||||
mRecentsAnimationRunning = false;
|
||||
mLaunchingTaskView = null;
|
||||
}
|
||||
@@ -241,8 +238,4 @@ public class SplitSelectStateController {
|
||||
public boolean isSplitSelectActive() {
|
||||
return mInitialTask != null && mSecondTask == null;
|
||||
}
|
||||
|
||||
public Rect getInitialBounds() {
|
||||
return mInitialBounds;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user