快捷发言bugfix
This commit is contained in:
@@ -945,12 +945,20 @@ public class HomePartyRoomFragment extends BaseMvpFragment<IHomePartyView, HomeP
|
||||
gameBinding.rvSpeedyMessage.setLayoutManager(new LinearLayoutManager(mContext, LinearLayoutManager.HORIZONTAL, false));
|
||||
adapter.setNewData(phrases);
|
||||
adapter.setOnItemClickListener((adapter1, view, position) -> {
|
||||
if (CurrentTimeUtils.getCurrentTime() - lastSendTime > 30000) {
|
||||
if (CurrentTimeUtils.getCurrentTime() - lastSendTime > 10000) {
|
||||
sendMsg(phrases.get(position));
|
||||
lastSendTime = CurrentTimeUtils.getCurrentTime();
|
||||
StatisticManager.Instance().onEvent("room_quickchat", "语音房_快捷发言");
|
||||
} else {
|
||||
SingleToastUtil.showToast("你发送的太频繁啦,66星球忙不过来~");
|
||||
RoomInfo roomInfo = AvRoomDataManager.get().mCurrentRoomInfo;
|
||||
if (roomInfo == null) {
|
||||
return;
|
||||
}
|
||||
if (roomInfo.isCloseScreen()) {
|
||||
toast("房间公屏已关闭");
|
||||
return;
|
||||
}
|
||||
SingleToastUtil.showToast("你发送的太频繁啦,请稍后再试");
|
||||
}
|
||||
|
||||
});
|
||||
|
@@ -136,6 +136,7 @@ public class AvRoomPresenter extends BaseMvpPresenter<IAvRoomView> {
|
||||
//我们自己服务端信息
|
||||
AvRoomDataManager.get().mCurrentRoomInfo = roomInfo;
|
||||
AvRoomDataManager.get().mBoxSwitchVo = roomInfo.boxSwitchVo;
|
||||
AvRoomDataManager.get().phrases = roomInfo.getSpeakTemplate();
|
||||
// 第一次进房,离开模式下更新本地房主位ui
|
||||
AvRoomDataManager.get().nick = roomInfo.getNick();
|
||||
AvRoomDataManager.get().gender = roomInfo.getGender();
|
||||
|
@@ -202,6 +202,7 @@ public class RoomInfo implements Parcelable,Serializable {
|
||||
", roomModeType=" + roomModeType +
|
||||
", isPermitRoom=" + isPermitRoom +
|
||||
", showGiftValue=" + showGiftValue +
|
||||
|
||||
'}';
|
||||
}
|
||||
|
||||
@@ -242,6 +243,7 @@ public class RoomInfo implements Parcelable,Serializable {
|
||||
gender = in.readInt();
|
||||
hideFlag = in.readInt();
|
||||
closeScreenFlag = in.readInt();
|
||||
speakTemplate = in.createStringArrayList();
|
||||
boxSwitchVo = in.readParcelable(BoxSwitchVo.class.getClassLoader());
|
||||
}
|
||||
|
||||
@@ -278,6 +280,7 @@ public class RoomInfo implements Parcelable,Serializable {
|
||||
dest.writeByte((byte) (serverRedEnvelopeSwitch ? 1 : 0));
|
||||
dest.writeInt(gender);
|
||||
dest.writeString(nick);
|
||||
dest.writeStringList(speakTemplate);
|
||||
dest.writeInt(hideFlag);
|
||||
dest.writeInt(closeScreenFlag);
|
||||
dest.writeParcelable(boxSwitchVo, flags);
|
||||
|
Reference in New Issue
Block a user