77 签约房内切换初始化数据,红包闪退

This commit is contained in:
2025-12-19 15:54:08 +08:00
parent f2363dad01
commit 5c607c58ae
4 changed files with 15 additions and 2 deletions

View File

@@ -2936,12 +2936,18 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
// TODO:不进入 2025/8/26 加入房间
override fun roomInfo(resp: RoomInfoResp) {
if (resp.sign_info != null) {
LogUtils.e("roomInfo", resp.sign_info.toString())
}
mRoomInfoResp = resp
isOnline = true
password = ""
roomId = mRoomInfoResp?.room_info?.room_id
taskId = null
initPublicScreenFragment()
MvpPre?.getRoomOnline(roomId, "1", "10")
LogUtils.e("roomInfo",mRoomInfoResp?.sign_info.toString())
setView(resp)
}

View File

@@ -348,6 +348,11 @@ class RoomMentorShipFragment(var mRoomInfoResp: RoomInfoResp?) :
fun roomTypeSwitch(roomInfoResp: RoomInfoResp) {
this.mRoomInfoResp = roomInfoResp
//重新初始化
if (isStart){
stopTimer()
isStart = false
}
mUserInfo = this.mRoomInfoResp?.user_info
mRoomId = this.mRoomInfoResp?.room_info?.room_id!!
initView()

View File

@@ -453,7 +453,7 @@ public class GiftLotteryDialog extends BaseMvpDialogFragment<GiftLotteryPresente
} catch (Exception e) {
viewName = "未知View ID: " + id;
}
LogUtils.e("GiftLotteryDFragment","点击了" + viewName );
LogUtils.e("GiftLotteryDFragment","点击了" + viewName +",isDrawing="+isDrawing);
}
private void setBackground() {