Removing separate Cancel and End callbacks and using AnimationListener instead
This removes the additional step of invoking these callbacks separately Change-Id: I0b60047a44f179ba725f15b1e791e336884869c9
This commit is contained in:
1 parent
b0588f1172
commit
ff9e7d6aa9
13 files changed
+141
-173
No files matched your search
+2
-2
@@ -106,8 +106,8 @@ public class QuickSwitchTouchController extends AbstractStateChangeTouchControll
|
||||
setupInterpolators(config);
|
||||
config.duration = (long) (getShiftRange() * 2);
|
||||
mCurrentAnimation = mLauncher.getStateManager()
|
||||
.createAnimationToNewWorkspace(mToState, config)
|
||||
.setOnCancelRunnable(this::clearState);
|
||||
.createAnimationToNewWorkspace(mToState, config);
|
||||
mCurrentAnimation.getTarget().addListener(mClearStateOnCancelListener);
|
||||
mCurrentAnimation.getAnimationPlayer().addUpdateListener(valueAnimator ->
|
||||
updateFullscreenProgress((Float) valueAnimator.getAnimatedValue()));
|
||||
return 1 / getShiftRange();
|
||||
|
||||
Reference in new issue
Block a user