Loading src/com/android/launcher3/LauncherStateManager.java +19 −6 Original line number Diff line number Diff line Loading @@ -162,13 +162,26 @@ public class LauncherStateManager { } public void goToState(LauncherState state, boolean animated, long delay, long overrideDuration, Runnable onCompleteRunnable) { if (mLauncher.isInState(state) && mConfig.mCurrentAnimation == null) { final Runnable onCompleteRunnable) { if (mLauncher.isInState(state)) { if (mConfig.mCurrentAnimation == null) { // Run any queued runnable if (onCompleteRunnable != null) { onCompleteRunnable.run(); } return; } else if (!mConfig.userControlled && animated) { // We are running the same animation as requested if (onCompleteRunnable != null) { mConfig.mCurrentAnimation.addListener(new AnimationSuccessListener() { @Override public void onAnimationSuccess(Animator animator) { onCompleteRunnable.run(); } }); } return; } } // Cancel the current animation Loading Loading
src/com/android/launcher3/LauncherStateManager.java +19 −6 Original line number Diff line number Diff line Loading @@ -162,13 +162,26 @@ public class LauncherStateManager { } public void goToState(LauncherState state, boolean animated, long delay, long overrideDuration, Runnable onCompleteRunnable) { if (mLauncher.isInState(state) && mConfig.mCurrentAnimation == null) { final Runnable onCompleteRunnable) { if (mLauncher.isInState(state)) { if (mConfig.mCurrentAnimation == null) { // Run any queued runnable if (onCompleteRunnable != null) { onCompleteRunnable.run(); } return; } else if (!mConfig.userControlled && animated) { // We are running the same animation as requested if (onCompleteRunnable != null) { mConfig.mCurrentAnimation.addListener(new AnimationSuccessListener() { @Override public void onAnimationSuccess(Animator animator) { onCompleteRunnable.run(); } }); } return; } } // Cancel the current animation Loading