void releaseDrawable(@Nullable Drawable drawable) { if (drawable instanceof Animatable && ((Animatable) drawable).isRunning()) { ((Animatable) drawable).stop(); } if (drawable instanceof DrawableWithCaches) { ((DrawableWithCaches) drawable).dropCaches(); } }
@Override protected void releaseDrawable(@Nullable Drawable drawable) { if (drawable instanceof DrawableWithCaches) { ((DrawableWithCaches) drawable).dropCaches(); } }