Loading src/com/android/launcher3/anim/AnimationSuccessListener.java +3 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,8 @@ package com.android.launcher3.anim; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import androidx.annotation.CallSuper; /** * Extension of {@link AnimatorListenerAdapter} for listening for non-cancelled animations */ Loading @@ -27,6 +29,7 @@ public abstract class AnimationSuccessListener extends AnimatorListenerAdapter { protected boolean mCancelled = false; @Override @CallSuper public void onAnimationCancel(Animator animation) { mCancelled = true; } Loading src/com/android/launcher3/statemanager/StateManager.java +1 −0 Original line number Diff line number Diff line Loading @@ -345,6 +345,7 @@ public class StateManager<STATE_TYPE extends BaseState<STATE_TYPE>> { @Override public void onAnimationCancel(Animator animation) { super.onAnimationCancel(animation); onStateTransitionFailed(state); } }; Loading Loading
src/com/android/launcher3/anim/AnimationSuccessListener.java +3 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,8 @@ package com.android.launcher3.anim; import android.animation.Animator; import android.animation.AnimatorListenerAdapter; import androidx.annotation.CallSuper; /** * Extension of {@link AnimatorListenerAdapter} for listening for non-cancelled animations */ Loading @@ -27,6 +29,7 @@ public abstract class AnimationSuccessListener extends AnimatorListenerAdapter { protected boolean mCancelled = false; @Override @CallSuper public void onAnimationCancel(Animator animation) { mCancelled = true; } Loading
src/com/android/launcher3/statemanager/StateManager.java +1 −0 Original line number Diff line number Diff line Loading @@ -345,6 +345,7 @@ public class StateManager<STATE_TYPE extends BaseState<STATE_TYPE>> { @Override public void onAnimationCancel(Animator animation) { super.onAnimationCancel(animation); onStateTransitionFailed(state); } }; Loading