合并
This commit is contained in:
@@ -442,6 +442,13 @@ public class RoomUserInfoFragment extends BaseMvpDialogFragment<RoomUserPresente
|
||||
|
||||
@Override
|
||||
public void getRoomUserInfo(UserInfo userInfo1) {
|
||||
|
||||
// 检查 Fragment 是否还 attached 到 Activity
|
||||
if (!isAdded() || getContext() == null) {
|
||||
LogUtils.e("RoomUserInfoFragment", "Fragment not attached to context, skipping operation");
|
||||
return;
|
||||
}
|
||||
|
||||
this.userInfo = userInfo1;
|
||||
mBinding.ivAvatar.setData(userInfo.getAvatar(), "", userInfo.getNobility_image() + "");
|
||||
String sex = userInfo.getSex() == 1 ? "男" : "女";
|
||||
@@ -470,7 +477,7 @@ public class RoomUserInfoFragment extends BaseMvpDialogFragment<RoomUserPresente
|
||||
} else {
|
||||
// mBinding.imRoomGz.setImageDrawable(getResources().getDrawable(com.xscm.moduleutil.R.mipmap.room_gz));
|
||||
mBinding.imRoomGz.setText("+ 关注");
|
||||
}
|
||||
}
|
||||
|
||||
if (userInfo.getIs_room_owner().equals("1")) {
|
||||
close_type = 1;
|
||||
|
||||
Reference in New Issue
Block a user