Always draw DraweeSpans even when they are not attached
Summary: We can still draw inline images even though it is currently not attached. This can be useful if the text is rendered ahead of time.
package com.facebook.drawee.span;
-import android.graphics.Canvas;
-import android.graphics.Paint;
import android.view.View;
import com.facebook.drawee.view.DraweeHolder;
import com.facebook.widget.text.span.BetterImageSpan;
@@ -38,22 +36,6 @@ public class DraweeSpan extends BetterImageSpan {
mDraweeHolder = draweeHolder;
}
- @Override
- public void draw(
- Canvas canvas,
- CharSequence text,
- int start,
- int end,
- float x,
- int top,
- int y,
- int bottom,
- Paint paint) {
- if (mDraweeHolder.isAttached()) {
- super.draw(canvas, text, start, end, x, top, y, bottom, paint);
- }
- }
-
/**
* Gets the drawee span ready to display the image.
*
