From c4117b80eec5747550535f395094aaac194c8366 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Thu, 28 Mar 2024 15:37:53 +0800 Subject: [PATCH] =?UTF-8?q?fix=20[=E5=87=BA=E7=8E=B0=E4=B8=AD=E8=8B=B1?= =?UTF-8?q?=E6=96=87=E6=B7=B7=E6=90=AD=E7=9A=84=E6=83=85=E5=86=B5=EF=BC=88?= =?UTF-8?q?=E5=81=B6=E7=8E=B0=EF=BC=89]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/java/com/yunbao/common/glide/ImgLoader.java | 3 +++ .../main/java/com/yunbao/common/manager/IMLoginManager.java | 2 ++ .../java/com/yunbao/main/views/MainMessageViewHolder.java | 5 ++++- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/common/src/main/java/com/yunbao/common/glide/ImgLoader.java b/common/src/main/java/com/yunbao/common/glide/ImgLoader.java index ca8c7e939..045c9f413 100644 --- a/common/src/main/java/com/yunbao/common/glide/ImgLoader.java +++ b/common/src/main/java/com/yunbao/common/glide/ImgLoader.java @@ -51,6 +51,9 @@ public class ImgLoader { if(StringUtil.isEmpty(url)){ return; } + if(!url.startsWith("http")){ + return; + } RequestBuilder builder = Glide.with(context) .load(url); diff --git a/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java b/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java index 4947310c0..8c09b980e 100644 --- a/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java +++ b/common/src/main/java/com/yunbao/common/manager/IMLoginManager.java @@ -25,6 +25,7 @@ import com.yunbao.common.manager.base.BaseCacheManager; import com.yunbao.common.manager.imrongcloud.MessageIMManager; import com.yunbao.common.manager.imrongcloud.RongcloudIMManager; import com.yunbao.common.utils.SpUtil; +import com.yunbao.common.utils.WordUtil; import com.yunbao.common.views.floatingview.APPEasyFloat; import org.greenrobot.eventbus.EventBus; @@ -298,6 +299,7 @@ public class IMLoginManager extends BaseCacheManager { public static IMLoginManager get(Context context) { if (null == manager) { manager = new IMLoginManager(CommonAppContext.sInstance.getBaseContext()); + manager.setLanguage(!WordUtil.isNewZh()); } return manager; } diff --git a/main/src/main/java/com/yunbao/main/views/MainMessageViewHolder.java b/main/src/main/java/com/yunbao/main/views/MainMessageViewHolder.java index 650b8a9ce..f1eb0b8a1 100644 --- a/main/src/main/java/com/yunbao/main/views/MainMessageViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/MainMessageViewHolder.java @@ -45,6 +45,8 @@ import com.yunbao.common.utils.LiveRoomCheckLivePresenter; import com.yunbao.common.utils.RouteUtil; import com.yunbao.common.utils.SVGAViewUtils; import com.yunbao.common.utils.StringUtil; +import com.yunbao.common.utils.ToastUtil; +import com.yunbao.common.utils.WordUtil; import com.yunbao.common.views.AbsMainViewHolder; import com.yunbao.common.views.weight.ViewClicksAntiShake; import com.yunbao.live.activity.SystemMessageActivity; @@ -135,8 +137,9 @@ public class MainMessageViewHolder extends AbsMainViewHolder { contacts.setOnClickListener(view -> { //通讯录 //RouteUtil.forwardActivity(RouteUtil.PATH_ADDRESSBOOK); - mContext.startActivity(new Intent(mContext, com.yunbao.main.activity.CompleteUserInfoActivity.class)); + // mContext.startActivity(new Intent(mContext, com.yunbao.main.activity.CompleteUserInfoActivity.class)); // mContext.startActivity(new Intent(mContext, MessageHiConfigRecordActivity.class)); + ToastUtil.show(WordUtil.isNewZh()+""); }); search.addTextChangedListener(new TextWatcher() { @Override