酒吧交友房 进出房间不接受Im消息,用户详情 标签显示优化。
This commit is contained in:
@@ -298,7 +298,7 @@ public class ChatRoomFragment extends BaseMvpFragment<ChatRoomPresenter, RoomFra
|
||||
}
|
||||
}
|
||||
|
||||
public void setIsPriRoom(boolean isPriRoom,List<String> userIdList) {
|
||||
public void setIsPriRoom(boolean isPriRoom, List<String> userIdList) {
|
||||
if (easeChatAdapter != null) {
|
||||
easeChatAdapter.isPriRoom = isPriRoom;
|
||||
easeChatAdapter.userIdList = userIdList;
|
||||
@@ -481,9 +481,9 @@ public class ChatRoomFragment extends BaseMvpFragment<ChatRoomPresenter, RoomFra
|
||||
}
|
||||
|
||||
|
||||
public void sendPriMsg(int status,RoomInputEvent roomInputEvent,EmotionDeatils emotionDeatils,String roomId) {
|
||||
public void sendPriMsg(int status, RoomInputEvent roomInputEvent, EmotionDeatils emotionDeatils, String roomId) {
|
||||
RoomMessageEvent.T t = new RoomMessageEvent.T();
|
||||
if (status == 2){
|
||||
if (status == 2) {
|
||||
EmotionDeatils event = new EmotionDeatils();
|
||||
if (emotionDeatils != null && emotionDeatils.getChildren() != null && !emotionDeatils.getChildren().isEmpty() && emotionDeatils.getChildren().size() > 0) {
|
||||
int position = new Random().nextInt(emotionDeatils.getChildren().size());
|
||||
@@ -495,7 +495,7 @@ public class ChatRoomFragment extends BaseMvpFragment<ChatRoomPresenter, RoomFra
|
||||
}
|
||||
t.setFromUserInfo(SpUtil.getUserInfo());
|
||||
t.setEmoji(event);
|
||||
}else {
|
||||
} else {
|
||||
String message = roomInputEvent.text;
|
||||
t.setText(message);
|
||||
t.setFromUserInfo(SpUtil.getUserInfo());
|
||||
@@ -537,7 +537,7 @@ public class ChatRoomFragment extends BaseMvpFragment<ChatRoomPresenter, RoomFra
|
||||
if (message.getRoomId() == null) {
|
||||
return;
|
||||
}
|
||||
if (!mIsPriRoom){
|
||||
if (!mIsPriRoom) {
|
||||
if (roomId == null || (!message.getRoomId().contains(roomId) && message.getMsgType() != 125)) {
|
||||
return;
|
||||
}
|
||||
@@ -612,13 +612,17 @@ public class ChatRoomFragment extends BaseMvpFragment<ChatRoomPresenter, RoomFra
|
||||
// message.getRoomId(), text.getJia_jia(), 2);
|
||||
// EventBus.getDefault().post(roomJoinMountModel);
|
||||
// }
|
||||
postAndAddMessage(message);
|
||||
if (!mIsPriRoom)
|
||||
postAndAddMessage(message);
|
||||
break;
|
||||
case 123:
|
||||
easeChatAdapter.clearData();
|
||||
postAndAddMessage(message);
|
||||
break;
|
||||
case 1002:
|
||||
if (mIsPriRoom){
|
||||
break;
|
||||
}
|
||||
case 1012:
|
||||
case 1011:
|
||||
case 1014:
|
||||
|
||||
@@ -181,6 +181,13 @@ public class UserHomepageFragment extends BaseMvpFragment<UserHomepagePresenter,
|
||||
|
||||
if (!userInfo.getIcon().isEmpty()) {
|
||||
mBinding.headerInfo.flexEntry.setVisibility(VISIBLE);
|
||||
|
||||
if (mBinding.headerInfo.rlCpAnim.getVisibility() == VISIBLE){
|
||||
ConstraintLayout.LayoutParams params = (ConstraintLayout.LayoutParams) mBinding.headerInfo.flexEntry.getLayoutParams();
|
||||
params.endToStart = mBinding.headerInfo.rlCpAnim.getId();
|
||||
mBinding.headerInfo.flexEntry.setLayoutParams(params);
|
||||
}
|
||||
|
||||
for (String url : userInfo.getIcon()) {
|
||||
if (url != null && url.contains("http")) {
|
||||
ImageView imageView1 = new ImageView(Application.getInstance());
|
||||
@@ -188,7 +195,7 @@ public class UserHomepageFragment extends BaseMvpFragment<UserHomepagePresenter,
|
||||
LinearLayout.LayoutParams.WRAP_CONTENT,
|
||||
Application.getInstance().getResources().getDimensionPixelSize(com.xscm.moduleutil.R.dimen.dp_20)
|
||||
);
|
||||
params.setMargins(0, 0, Application.getInstance().getResources().getDimensionPixelSize(com.xscm.moduleutil.R.dimen.dp_10), 0); // 右边距
|
||||
params.setMargins(0, 0, Application.getInstance().getResources().getDimensionPixelSize(com.xscm.moduleutil.R.dimen.dp_5), 0); // 右边距
|
||||
imageView1.setLayoutParams(params);
|
||||
imageView1.setScaleType(ImageView.ScaleType.FIT_START);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user