最小化进入房间and拍卖房得到主持权限 添加log.
This commit is contained in:
@@ -391,6 +391,7 @@ public class MainActivity extends BaseMvpActivity<HomePresenter, ActivityMainBin
|
||||
} else if (id == R.id.riv) {
|
||||
mBinding.coolWaitView.setVisibility(View.VISIBLE);
|
||||
String roomId = CommonAppContext.getInstance().playId;
|
||||
LogUtils.e("最小化进入房间:"+roomId);
|
||||
if (!TextUtils.isEmpty(roomId)) {
|
||||
RoomManager.getInstance().fetchRoomDataAndEnter(this, CommonAppContext.getInstance().playId, "", null);
|
||||
singleTaskToActivity(RoomActivity.class);
|
||||
|
||||
@@ -2716,6 +2716,7 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
}
|
||||
|
||||
private fun minimizeToBackground() {
|
||||
LogUtils.e("RoomActivity", "minimizeToBackground:"+roomId +",play:"+CommonAppContext.getInstance().playId)
|
||||
isMinimized = true
|
||||
// 保存最小化状态和房间ID
|
||||
saveMinimizeState()
|
||||
@@ -2879,7 +2880,7 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
switchMic(2)
|
||||
}else if (mRoomInfoResp?.user_info?.user_id == userId && !CommonAppContext.getInstance().isMai) {
|
||||
switchMic(2)
|
||||
}else{
|
||||
}else if (voive){
|
||||
switchMic(1)
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -675,6 +675,7 @@ class RoomMentorShipFragment(var mRoomInfoResp: RoomInfoResp?) :
|
||||
|
||||
|
||||
private fun getHostUser(): Int {
|
||||
LogUtils.e("getHostUser:${mRoomInfoResp?.user_info.toString()}")
|
||||
return if (mRoomInfoResp?.user_info?.is_room_owner == 1) {
|
||||
1
|
||||
} else if (mRoomInfoResp?.user_info?.is_management == 1) {
|
||||
|
||||
Reference in New Issue
Block a user