/** Stops animation for the given {@link ImageDisplay}. */ public void stop(final ImageDisplay display) { final Animation animation = animations.get(display); if (animation != null) { animation.stop(); statusService.showStatus(STOPPED_STATUS); } }
/** Stop showing animation on control. */ private void stopAnimation() { if (mIsShowingAnimation) { // Stop animation on accessory if (mAnimation != null) { mAnimation.stop(); mHandler.removeCallbacks(mAnimation); mAnimation = null; } mIsShowingAnimation = false; } }
/** Stops all animations. */ public void stopAll() { for (final Animation animation : animations.values()) { animation.stop(); } statusService.showStatus(ALL_STOPPED_STATUS); }