Skip to content

Commit 32583b8

Browse files
committed
BlockImageSpan统一设置圆角
1 parent 7831a5f commit 32583b8

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

richeditor/src/main/java/com/yuruiyin/richeditor/RichEditText.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -329,10 +329,8 @@ public void insertBlockImage(Drawable drawable, @NonNull BlockImageSpanVm blockI
329329
View imageItemView = activity.getLayoutInflater().inflate(R.layout.rich_editor_image, null);
330330
RoundedImageView imageView = imageItemView.findViewById(R.id.image);
331331
imageView.setImageDrawable(drawable);
332-
if (blockImageSpanVm.isPhoto() || blockImageSpanVm.isVideo()) {
333-
// 相册图片或视频设置圆角
334-
imageView.setCornerRadius(gImageRadius);
335-
}
332+
// 设置圆角
333+
imageView.setCornerRadius(gImageRadius);
336334

337335
// 控制视频、gif、长图标识的显示和隐藏
338336
setMarkIconVisibility(imageItemView, blockImageSpanVm);

0 commit comments

Comments
 (0)