酒吧交友房 消息高亮显示。
This commit is contained in:
@@ -972,7 +972,6 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
setviewyc(true)
|
||||
}
|
||||
|
||||
|
||||
// Log room join action
|
||||
LogUtils.e("加入", roomId)
|
||||
// Build comma-separated user IDs from pit list
|
||||
@@ -1604,6 +1603,7 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
if (publicScreenFragment != null) {
|
||||
MessageExListenerSingleton.getInstance().joinGroup(messageEvent.text.room_id)
|
||||
publicScreenFragment?.setupExMessageListener()
|
||||
publicScreenFragment?.setIsPriRoom(true)
|
||||
}
|
||||
}
|
||||
}else if (msgType == EMMessageInfo.QXRoomMessageTypeFlirtatiousRoomPush) {//酒吧房抱麦推送
|
||||
|
||||
@@ -287,6 +287,13 @@ public class ChatRoomFragment extends BaseMvpFragment<ChatRoomPresenter, RoomFra
|
||||
}
|
||||
}
|
||||
|
||||
public void setIsPriRoom(boolean isPriRoom) {
|
||||
if (easeChatAdapter != null) {
|
||||
easeChatAdapter.isPriRoom = isPriRoom;
|
||||
easeChatAdapter.notifyDataSetChanged();
|
||||
}
|
||||
}
|
||||
|
||||
private int isNumberWhether() {
|
||||
if (roomInfoResp.getUser_info().getPit_number() == 9) {
|
||||
return 1;
|
||||
|
||||
@@ -38,6 +38,7 @@ import com.xscm.moduleutil.bean.GiftBean;
|
||||
import com.xscm.moduleutil.bean.RoomMessageEvent;
|
||||
import com.xscm.moduleutil.bean.UserInfo;
|
||||
import com.xscm.moduleutil.bean.room.EMMessageInfo;
|
||||
import com.xscm.moduleutil.rtc.AgoraManager;
|
||||
import com.xscm.moduleutil.utils.ImageUtils;
|
||||
import com.xscm.moduleutil.utils.MeHeadView;
|
||||
import com.xscm.moduleutil.widget.AdaptiveImageView;
|
||||
@@ -69,6 +70,7 @@ public class EaseChatAdapter extends BaseMultiItemQuickAdapter<EMMessageInfo, Ba
|
||||
private List<EMMessageInfo> systemMsgList;
|
||||
private String messageNameColor = "#00C8FF";//名称的颜色
|
||||
private String messageGiftColor = "#FFE309";//礼物的颜色
|
||||
public boolean isPriRoom = false;
|
||||
|
||||
public EaseChatAdapter() {
|
||||
super(null);
|
||||
@@ -384,6 +386,16 @@ public class EaseChatAdapter extends BaseMultiItemQuickAdapter<EMMessageInfo, Ba
|
||||
break;
|
||||
}
|
||||
|
||||
if (isPriRoom){
|
||||
if (emMessage.getRoomId().equals(AgoraManager.getInstance().getLastRoomId())){
|
||||
helper.itemView.setAlpha(0.4f);
|
||||
}else {
|
||||
helper.itemView.setAlpha(1f);
|
||||
}
|
||||
}else {
|
||||
helper.itemView.setAlpha(1f);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user