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