From 463e7b9040c207399a4f3e2214a7bf179cdbda54 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 25 Mar 2024 10:09:28 +0800 Subject: [PATCH] =?UTF-8?q?fix=20[=E6=B6=88=E6=81=AF=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=EF=BC=8C=E5=88=A0=E9=99=A4=E5=B7=B2=E7=BB=8F=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E7=9A=84=E5=9B=BE=E7=89=87=E4=B9=8B=E5=90=8E=EF=BC=8C=C3=97?= =?UTF-8?q?=E4=BE=9D=E7=84=B6=E5=AD=98=E5=9C=A8]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/yunbao/main/activity/MessageHiConfigActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/src/main/java/com/yunbao/main/activity/MessageHiConfigActivity.java b/main/src/main/java/com/yunbao/main/activity/MessageHiConfigActivity.java index 8baf0ea28..26dff0e98 100644 --- a/main/src/main/java/com/yunbao/main/activity/MessageHiConfigActivity.java +++ b/main/src/main/java/com/yunbao/main/activity/MessageHiConfigActivity.java @@ -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() { @Override public void onItemClick(String url, int position) { + loading.dismiss(); if (position == -1) { - loading.dismiss(); ToastUtil.show("连接超时"); return; } - loading.dismiss(); MessageHiBean item = new MessageHiBean(); item.setContent(url); item.setType(MessageHiBean.TYPE_IMAGE); @@ -361,7 +361,7 @@ public class MessageHiConfigActivity extends AbsActivity { @Override public void onFailure() { super.onFailure(); - if(loading!=null){ + if (loading != null) { loading.dismiss(); } }