1:添加在离线展示
2:修改在进入房间后再最小化,从后台进入出现在首页的问题
This commit is contained in:
@@ -160,6 +160,11 @@ public abstract class BaseWheatView extends ConstraintLayout implements IBaseWhe
|
||||
|
||||
setCardiac(pitBean.getCharm(), getTzbl());
|
||||
setPitData(bean);
|
||||
if (bean.getIs_online() == 2){
|
||||
iv_on_line.setVisibility(VISIBLE);
|
||||
}else {
|
||||
iv_on_line.setVisibility(GONE);
|
||||
}
|
||||
// if (bean.getIs_online() == 0 &&bean.getUser_id() != null && !bean.getUser_id().equals("0") && !bean.getUser_id().isEmpty()) {
|
||||
// iv_on_line.setVisibility(VISIBLE);
|
||||
// } else {
|
||||
@@ -296,19 +301,6 @@ public abstract class BaseWheatView extends ConstraintLayout implements IBaseWhe
|
||||
|
||||
}
|
||||
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
public void subscribeMessages(RoomMessageEvent roomMessageEvent) {
|
||||
if(roomMessageEvent.getMsgType()==1058){
|
||||
if (roomMessageEvent.getText().getUser_id().equals(pitBean.getUser_id())){
|
||||
if (roomMessageEvent.getText().getType()==1){
|
||||
iv_on_line.setVisibility(GONE);
|
||||
}else {
|
||||
iv_on_line.setVisibility(VISIBLE);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 开始倒计时
|
||||
|
||||
Reference in New Issue
Block a user