Java 类com.facebook.drawable.base.DrawableWithCaches 实例源码

项目:drawee-text-view    文件:DraweeSpan.java   
void releaseDrawable(@Nullable Drawable drawable) {
    if (drawable instanceof Animatable && ((Animatable) drawable).isRunning()) {
        ((Animatable) drawable).stop();
    }
    if (drawable instanceof DrawableWithCaches) {
        ((DrawableWithCaches) drawable).dropCaches();
    }
}
项目:GitHub    文件:PipelineDraweeController.java   
@Override
protected void releaseDrawable(@Nullable Drawable drawable) {
  if (drawable instanceof DrawableWithCaches) {
    ((DrawableWithCaches) drawable).dropCaches();
  }
}
项目:fresco    文件:PipelineDraweeController.java   
@Override
protected void releaseDrawable(@Nullable Drawable drawable) {
  if (drawable instanceof DrawableWithCaches) {
    ((DrawableWithCaches) drawable).dropCaches();
  }
}