fix [出现中英文混搭的情况(偶现)]

This commit is contained in:
zlzw 2024-03-28 15:37:53 +08:00
parent ab4a5cb077
commit c4117b80ee
3 changed files with 9 additions and 1 deletions

View File

@ -51,6 +51,9 @@ public class ImgLoader {
if(StringUtil.isEmpty(url)){
return;
}
if(!url.startsWith("http")){
return;
}
RequestBuilder<Drawable> builder = Glide.with(context)
.load(url);

View File

@ -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;
}

View File

@ -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