Skip to content

Commit

Permalink
fix(android): image span draw transparent color when no src set
Browse files Browse the repository at this point in the history
  • Loading branch information
siguangli2018 authored and siguangli committed May 13, 2024
1 parent e501e93 commit 2805d03
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ protected TextImageSpan createImageSpan() {
}
}
if (drawable == null) {
drawable = new ColorDrawable(Color.WHITE);
drawable = new ColorDrawable(Color.TRANSPARENT);
}
drawable.setBounds(0, 0, mWidth, mHeight);
return new TextImageSpan(drawable, mUrl, this, mNativeRenderer);
Expand Down

0 comments on commit 2805d03

Please sign in to comment.