fix [消息设置,删除已经上传的图片之后,×依然存在]
This commit is contained in:
parent
dd582c10c7
commit
463e7b9040
@ -315,6 +315,7 @@ public class MessageHiConfigActivity extends AbsActivity {
|
||||
private void setImage(View view) {
|
||||
MessageHiBean bean = (MessageHiBean) view.getTag();
|
||||
if (bean == null) {
|
||||
ViewUtils.findViewById(view, R.id.img_close).setVisibility(View.GONE);
|
||||
ViewUtils.findViewById(view, R.id.img_img, ImageView.class).setImageResource(R.mipmap.ic_message_hi_config_image_add);
|
||||
view.setOnClickListener(v -> {
|
||||
uploadImage(view);
|
||||
@ -342,12 +343,11 @@ public class MessageHiConfigActivity extends AbsActivity {
|
||||
onSuccessToUrl(file, new OnItemClickListener<String>() {
|
||||
@Override
|
||||
public void onItemClick(String url, int position) {
|
||||
if (position == -1) {
|
||||
loading.dismiss();
|
||||
if (position == -1) {
|
||||
ToastUtil.show("连接超时");
|
||||
return;
|
||||
}
|
||||
loading.dismiss();
|
||||
MessageHiBean item = new MessageHiBean();
|
||||
item.setContent(url);
|
||||
item.setType(MessageHiBean.TYPE_IMAGE);
|
||||
|
Loading…
Reference in New Issue
Block a user