修改测试问题
This commit is contained in:
@@ -51,6 +51,7 @@ import com.yunbao.common.bean.MicUserBean;
|
||||
import com.yunbao.common.bean.UserBean;
|
||||
import com.yunbao.common.dialog.NotCancelableDialog;
|
||||
import com.yunbao.common.event.GiftWallIlluminateEvent;
|
||||
import com.yunbao.common.event.LiveSudGamePopupShowOrHideEvent;
|
||||
import com.yunbao.common.event.LoginInvalidEvent;
|
||||
import com.yunbao.common.event.SendBlindGiftEvent;
|
||||
import com.yunbao.common.event.ShowHideEvent;
|
||||
@@ -78,6 +79,7 @@ import com.yunbao.common.utils.ToastUtil;
|
||||
import com.yunbao.common.utils.WordUtil;
|
||||
import com.yunbao.common.views.LiveNewWishListPopup;
|
||||
import com.yunbao.common.views.LiveRobotSettingCustomPopup;
|
||||
import com.yunbao.common.views.LiveSudGamePopup;
|
||||
import com.yunbao.faceunity.FaceManager;
|
||||
import com.yunbao.live.R;
|
||||
import com.yunbao.live.bean.LiveChatBean;
|
||||
@@ -1857,4 +1859,44 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl
|
||||
});
|
||||
robotHandler.postDelayed(robotRunnable, robotTime);
|
||||
}
|
||||
|
||||
private LiveSudGamePopup liveSudGamePopupXPopup = null;
|
||||
|
||||
@Subscribe(threadMode = ThreadMode.MAIN)
|
||||
public void onLiveSudGamePopupShowOrHideEvent(LiveSudGamePopupShowOrHideEvent event) {
|
||||
switch (event.getType()) {
|
||||
case 0:
|
||||
if (liveSudGamePopupXPopup == null) {
|
||||
liveSudGamePopupXPopup = new LiveSudGamePopup(mContext, event.getCreateSudRoomModel());
|
||||
new XPopup.Builder(mContext)
|
||||
.enableDrag(false)
|
||||
.dismissOnTouchOutside(false)
|
||||
.dismissOnBackPressed(false)
|
||||
.asCustom(liveSudGamePopupXPopup).show();
|
||||
} else {
|
||||
if (liveSudGamePopupXPopup != null) {
|
||||
liveSudGamePopupXPopup.dialog.show();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
break;
|
||||
|
||||
case 1:
|
||||
if (liveSudGamePopupXPopup != null) {
|
||||
liveSudGamePopupXPopup.dialog.hide();
|
||||
}
|
||||
|
||||
break;
|
||||
case 2:
|
||||
if (liveSudGamePopupXPopup != null) {
|
||||
liveSudGamePopupXPopup.BusGetOff();
|
||||
liveSudGamePopupXPopup.dialog.dismiss();
|
||||
liveSudGamePopupXPopup = null;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -410,7 +410,7 @@ public class SocketRyClient {
|
||||
= new AllServerNotifyEvent()
|
||||
.setBlindBoxId(map.getString("blind_box_id"))
|
||||
.setBoxType(boxType)
|
||||
.setBoxTypeName(map.getString(boxTypeName))
|
||||
.setBoxTypeName(boxTypeName)
|
||||
.setDressName(WordUtil.isNewZh() ? map.getString("dress_name") : TextUtils.isEmpty(map.getString("dress_nameen")) ? map.getString("dress_name") : map.getString("dress_nameen"))
|
||||
.setGiftNotification(map.getString("gift_notification"))
|
||||
.setGiftName(WordUtil.isNewZh() ? mCt.getString("giftname") : mCt.getString("giftnameen"))
|
||||
@@ -767,9 +767,23 @@ public class SocketRyClient {
|
||||
}
|
||||
|
||||
private void buyGuardInSameRoom(JSONObject map) {
|
||||
String guardName = WordUtil.isNewZh() ? "周守護" : "Week Guardian";
|
||||
switch (map.getIntValue("guard_type")) {
|
||||
case 1:
|
||||
guardName = WordUtil.isNewZh() ? "周守護" : "Week Guardian";
|
||||
break;
|
||||
case 2:
|
||||
guardName = WordUtil.isNewZh() ? "月守護" : "Month Guardian";
|
||||
break;
|
||||
case 3:
|
||||
guardName = WordUtil.isNewZh() ? "年守護" : "Year Guardian";
|
||||
break;
|
||||
}
|
||||
String content = WordUtil.isNewZh() ? "%s在%s的直播間開通了%s" : "%s has been opened in %s live broadcast room %s";
|
||||
content = String.format(content, map.getString("uname"), map.getString("ancherName"), guardName);
|
||||
LiveBuyGuardMsgBean buyGuardMsgBean = new LiveBuyGuardMsgBean();
|
||||
buyGuardMsgBean.setUid(map.getString("uid"));
|
||||
buyGuardMsgBean.setUserName(map.getString("ct"));
|
||||
buyGuardMsgBean.setUserName(content);
|
||||
buyGuardMsgBean.setVotes(map.getString("votestotal"));
|
||||
buyGuardMsgBean.setGuardNum(map.getIntValue("guard_nums"));
|
||||
buyGuardMsgBean.setGuardType(map.getIntValue("guard_type"));
|
||||
|
||||
@@ -932,7 +932,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
* 申请连麦但是主播还未同意的状态
|
||||
*/
|
||||
public void micIngTypeOne(LiveBean bean, int liveType, int liveTypeVal) {
|
||||
DialogUitl.showSimpleDialog(mContext, null, "您已申請,退出將取消語音連麥申請!", false, new DialogUitl.SimpleCallback3() {
|
||||
DialogUitl.showSimpleDialog(mContext, null, WordUtil.isNewZh()?"您已申請,退出將取消語音連麥申請!":"You have applied, logout will cancel the voice connection application!", false, new DialogUitl.SimpleCallback3() {
|
||||
@Override
|
||||
public void onConfirmClick(Dialog dialog) {
|
||||
MicStatusManager.getInstance().clear();
|
||||
@@ -1381,7 +1381,13 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
||||
|
||||
@Override
|
||||
public void onBuyGuard(LiveBuyGuardMsgBean bean) {
|
||||
|
||||
if (mLiveRoomViewHolder != null) {
|
||||
mLiveRoomViewHolder.onGuardInfoChanged(bean);
|
||||
LiveChatBean chatBean = new LiveChatBean();
|
||||
chatBean.setContent(bean.getUserName());
|
||||
chatBean.setType(LiveChatBean.SYSTEM);
|
||||
mLiveRoomViewHolder.insertChat(chatBean, 1);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user