/** * Immediately cancel this animation. If the animation is running or is * scheduled to run, {@link #onCancel()} will be called. */ public void cancel() { // Ignore if the animation is not currently running. if (!isRunning) { return; } // Reset the state. wasStarted = isStarted; // Used by onCancel. element = null; isRunning = false; isStarted = false; // Cancel the animation request. if (requestHandle != null) { requestHandle.cancel(); requestHandle = null; } onCancel(); }
@Override public void onCancel() { super.onCancel(); }
@Override public void onCancel() { super.onCancel(); }
@Override public void onCancel() { super.onCancel(); }
/** * Immediately cancel this animation. If the animation is running or is * scheduled to run, {@link #onCancel()} will be called. */ public void cancel() { // Ignore if the animation is not currently running. if (!isRunning) { return; } // Reset the state. wasStarted = isStarted; // Used by onCancel. element = null; isRunning = false; isStarted = false; // Cancel the animation request. if (requestHandle != null) { requestHandle.cancel(); requestHandle = null; } onCancel(); }
/** * Immediately cancel this animation. If the animation is running or is * scheduled to run, {@link #onCancel()} will be called. */ public void cancel() { // Ignore if the animation is not currently running. if (!isRunning) { return; } // Reset the state. wasStarted = isStarted; // Used by onCancel. element = null; isRunning = false; isStarted = false; // Cancel the animation request. if (requestHandle != null) { requestHandle.cancel(); requestHandle = null; } onCancel(); }