fix [通讯录点击头像正常应该无法进入聊天界面]

This commit is contained in:
zlzw 2024-03-23 13:50:50 +08:00
parent 434486387d
commit 62419c86cf

View File

@ -17,6 +17,7 @@ import com.yunbao.common.bean.UserBean;
import com.yunbao.common.glide.ImgLoader; import com.yunbao.common.glide.ImgLoader;
import com.yunbao.common.http.base.HttpCallback; import com.yunbao.common.http.base.HttpCallback;
import com.yunbao.common.http.live.LiveNetManager; import com.yunbao.common.http.live.LiveNetManager;
import com.yunbao.common.utils.RouteUtil;
import com.yunbao.common.utils.StringUtil; import com.yunbao.common.utils.StringUtil;
import com.yunbao.common.utils.ToastUtil; import com.yunbao.common.utils.ToastUtil;
import com.yunbao.common.utils.WordUtil; import com.yunbao.common.utils.WordUtil;
@ -120,6 +121,9 @@ public class MainMsgAddressBookListAdapter extends BaseAdapter<MessageChatUserBe
} else { } else {
holder.getView(R.id.btn).setVisibility(View.GONE); holder.getView(R.id.btn).setVisibility(View.GONE);
} }
holder.getView(R.id.rc_conversation_portrait).setOnClickListener(view -> {
RouteUtil.forwardUserHome(mDataList.get(position).getId());
});
holder.getView(R.id.btn).setOnClickListener(new View.OnClickListener() { holder.getView(R.id.btn).setOnClickListener(new View.OnClickListener() {
@Override @Override
public void onClick(View view) { public void onClick(View view) {