77 交友房上麦
This commit is contained in:
@@ -62,7 +62,7 @@ open class Application : CommonAppContext() {
|
||||
override fun onCreate() {
|
||||
super.onCreate()
|
||||
// 应用内部存储 filesDir 目录的根路径
|
||||
APP_CONTENT = filesDir.absolutePath
|
||||
APP_CONTENT = File(filesDir, "APP_CONTENT").absolutePath
|
||||
// 内部存储下的日志目录
|
||||
LOGUTILS_SAVE_PATH = File(filesDir, "APP_CONTENT/APP_LOG").absolutePath
|
||||
// 内部存储下的崩溃日志目录
|
||||
|
||||
@@ -1735,12 +1735,13 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
} else {
|
||||
if (roomType == RoomType.DATING && mRoomInfoResp?.room_info?.label_id == "2" && pitNumber.toInt() != 9 && pitNumber.toInt() != 10) {
|
||||
mRoomInfoResp?.song_pit_list?.add(getPitBean(messageEvent, 1))
|
||||
if (fromUserInfo.user_id == mRoomInfoResp?.user_info?.user_id){
|
||||
if (fromUserInfo.user_id == mRoomInfoResp?.user_info?.user_id) {
|
||||
mRoomInfoResp?.user_info?.pit_number = 1
|
||||
}
|
||||
} else {
|
||||
if (pitNumber.toInt() - 1 >= 0 && mRoomInfoResp?.room_info?.pit_list != null
|
||||
&& mRoomInfoResp?.room_info?.pit_list!!.size > pitNumber.toInt() - 1) {
|
||||
&& mRoomInfoResp?.room_info?.pit_list!!.size > pitNumber.toInt() - 1
|
||||
) {
|
||||
mRoomInfoResp?.room_info?.pit_list!![pitNumber.toInt() - 1] =
|
||||
getPitBean(messageEvent, 1)
|
||||
}
|
||||
@@ -1783,13 +1784,14 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
mRoomInfoResp?.song_pit_list?.removeIf { roomPitBean ->
|
||||
roomPitBean.user_id.equals(fromUserInfo.user_id.toString())
|
||||
}
|
||||
if (mRoomInfoResp?.user_info != null && fromUserInfo.user_id == mRoomInfoResp?.user_info?.user_id){
|
||||
if (mRoomInfoResp?.user_info != null && fromUserInfo.user_id == mRoomInfoResp?.user_info?.user_id) {
|
||||
mRoomInfoResp?.user_info?.pit_number = 0
|
||||
}
|
||||
} else {
|
||||
if (pitNumber.isNotEmpty() && pitNumber.toInt() - 1 >= 0
|
||||
&& mRoomInfoResp?.room_info?.pit_list != null
|
||||
&& mRoomInfoResp?.room_info?.pit_list!!.size > pitNumber.toInt() - 1) {
|
||||
&& mRoomInfoResp?.room_info?.pit_list!!.size > pitNumber.toInt() - 1
|
||||
) {
|
||||
mRoomInfoResp?.room_info?.pit_list!![pitNumber.toInt() - 1] =
|
||||
RoomPitBean(pitNumber)
|
||||
}
|
||||
@@ -2804,6 +2806,14 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
|
||||
//底部麦上按钮显示
|
||||
private fun roomBtnShowIsHide() {
|
||||
|
||||
//KTV 显示点歌按钮
|
||||
if (RoomType.fromTypeId(mRoomInfoResp?.room_info?.type_id.toString()) == RoomType.DATING
|
||||
&& mRoomInfoResp?.room_info?.label_id.equals("2")) {
|
||||
mBinding?.rlMisc?.visibility = View.VISIBLE
|
||||
} else {
|
||||
mBinding?.rlMisc?.visibility = View.GONE
|
||||
}
|
||||
//是否在麦上显示状态
|
||||
if (mRoomInfoResp?.user_info?.pit_number != 0) {
|
||||
maiStatus = false
|
||||
@@ -2831,7 +2841,8 @@ class RoomActivity : BaseMvpActivity<RoomPresenter?, ActivityRoomBinding?>(),
|
||||
}
|
||||
} else {
|
||||
if (RoomType.fromTypeId(mRoomInfoResp?.room_info?.type_id) == RoomType.JUKEBOX
|
||||
&& mRoomInfoResp?.singer_info?.song_info?.singer_user_id == mRoomInfoResp?.user_info?.user_id){
|
||||
&& mRoomInfoResp?.singer_info?.song_info?.singer_user_id == mRoomInfoResp?.user_info?.user_id
|
||||
) {
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
@@ -1092,8 +1092,8 @@ public class SingSongFragment extends BaseRoomFragment<SingSongPresenter, Fragme
|
||||
|
||||
/// 推送的下麦1003
|
||||
public void event1003(RoomMessageEvent message) {
|
||||
int pitNumber = Integer.parseInt(message.getText().getPit_number()) - 1;
|
||||
RoomPitBean pitBean = roomInfoResp.getRoom_info().getPit_list().get(pitNumber);
|
||||
int pitNumber = Integer.parseInt(message.getText().getPit_number()) ;
|
||||
RoomPitBean pitBean = roomInfoResp.getRoom_info().getPit_list().get(pitNumber- 1);
|
||||
if (roomInfoRespPk == null || roomInfoRespPk.getPk_info() == null) {
|
||||
wheatLayoutSingManager.updateSingleWheat(pitBean, pitNumber);
|
||||
} else {
|
||||
@@ -1111,8 +1111,8 @@ public class SingSongFragment extends BaseRoomFragment<SingSongPresenter, Fragme
|
||||
|
||||
/// 1004
|
||||
public void event1004(RoomMessageEvent message) {
|
||||
int pitNumber = Integer.parseInt(message.getText().getPit_number()) - 1;
|
||||
RoomPitBean pitBean = roomInfoResp.getRoom_info().getPit_list().get(pitNumber);
|
||||
int pitNumber = Integer.parseInt(message.getText().getPit_number()) ;
|
||||
RoomPitBean pitBean = roomInfoResp.getRoom_info().getPit_list().get(pitNumber- 1);
|
||||
if (roomInfoRespPk == null || roomInfoRespPk.getPk_info() == null) {
|
||||
wheatLayoutSingManager.updateSingleWheat(pitBean, pitNumber);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user