1:修改当在游戏房间的时候,不能点击其他房间进入,
2:在进入房间后,退出上一个房间的各种调用
This commit is contained in:
@@ -40,6 +40,9 @@ public class RoomInfoResp implements Serializable {
|
||||
private SingerInfo singer_info;
|
||||
private SignInfo sign_info;
|
||||
|
||||
private String room_id="";
|
||||
private String msg="";
|
||||
|
||||
//弹出麦位操作弹出
|
||||
public boolean isWheatManager() {
|
||||
//是管理员且在1或者9号麦,当时房主模式时,2号麦也有管理权限
|
||||
|
||||
@@ -137,6 +137,15 @@ public class ConfirmDialog extends Dialog {
|
||||
// 隐藏取消按钮
|
||||
btnNegative.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
//判断是否需要显示确认按钮
|
||||
if (positiveButtonText != null && !positiveButtonText.isEmpty()) {
|
||||
btnPositive.setText(positiveButtonText);
|
||||
btnPositive.setVisibility(View.VISIBLE);
|
||||
}else {
|
||||
// 隐藏确认按钮
|
||||
btnPositive.setVisibility(View.GONE);
|
||||
}
|
||||
// 倒计时逻辑
|
||||
if (isCountdownEnabled && countdownSeconds > 0) {
|
||||
startCountdown(btnNegative);
|
||||
|
||||
@@ -2249,6 +2249,8 @@ public class RetrofitClient {
|
||||
} else if (roomInfoRespBaseModel.getCode() == 0) {
|
||||
ToastUtils.showShort(roomInfoRespBaseModel.getMsg());
|
||||
observer.onNext(null);
|
||||
}else if (roomInfoRespBaseModel.getCode() == 202){
|
||||
observer.onNext(roomInfoRespBaseModel.getData());
|
||||
} else {
|
||||
MessageListenerSingleton.getInstance().quitGroup(roomId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user