修改盲盒问题
This commit is contained in:
parent
aacd8b8735
commit
35f16bdcae
@ -10,7 +10,6 @@ import android.content.res.Configuration;
|
|||||||
import android.graphics.drawable.AnimationDrawable;
|
import android.graphics.drawable.AnimationDrawable;
|
||||||
import android.os.CountDownTimer;
|
import android.os.CountDownTimer;
|
||||||
import android.os.Handler;
|
import android.os.Handler;
|
||||||
import android.os.Looper;
|
|
||||||
import android.text.TextUtils;
|
import android.text.TextUtils;
|
||||||
import android.util.Log;
|
import android.util.Log;
|
||||||
import android.view.LayoutInflater;
|
import android.view.LayoutInflater;
|
||||||
@ -99,8 +98,6 @@ import org.greenrobot.eventbus.EventBus;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Timer;
|
|
||||||
import java.util.TimerTask;
|
|
||||||
|
|
||||||
import cn.rongcloud.rtc.api.RCRTCEngine;
|
import cn.rongcloud.rtc.api.RCRTCEngine;
|
||||||
import cn.rongcloud.rtc.api.callback.IRCRTCResultCallback;
|
import cn.rongcloud.rtc.api.callback.IRCRTCResultCallback;
|
||||||
@ -1128,6 +1125,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
public void onSendGift(LiveReceiveGiftBean bean, SendBlindGiftEvent event) {
|
public void onSendGift(LiveReceiveGiftBean bean, SendBlindGiftEvent event) {
|
||||||
if (event != null) {
|
if (event != null) {
|
||||||
LiveChatBean liveChatBean = null;
|
LiveChatBean liveChatBean = null;
|
||||||
|
if (!TextUtils.isEmpty(event.isBlindBoxStatus()) && TextUtils.equals(event.isBlindBoxStatus(), "true")) {
|
||||||
if (!TextUtils.isEmpty(event.getDressName()) && !TextUtils.isEmpty(event.getDressMsg())) {
|
if (!TextUtils.isEmpty(event.getDressName()) && !TextUtils.isEmpty(event.getDressMsg())) {
|
||||||
liveChatBean = new LiveChatBean();
|
liveChatBean = new LiveChatBean();
|
||||||
liveChatBean.setUserNiceName(event.getUserNiceName());
|
liveChatBean.setUserNiceName(event.getUserNiceName());
|
||||||
@ -1140,6 +1138,8 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
bean.getLiveChatBean().setContent(event.getGiftMsg());
|
bean.getLiveChatBean().setContent(event.getGiftMsg());
|
||||||
bean.getLiveChatBean().setGiftName(event.getGiftname());
|
bean.getLiveChatBean().setGiftName(event.getGiftname());
|
||||||
bean.getLiveChatBean().setUserNiceName(event.getUserNiceName());
|
bean.getLiveChatBean().setUserNiceName(event.getUserNiceName());
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
if (mLiveRoomViewHolder != null) {
|
if (mLiveRoomViewHolder != null) {
|
||||||
if (bean.getmLiveUId().equals(bean.getRoomnum())) {
|
if (bean.getmLiveUId().equals(bean.getRoomnum())) {
|
||||||
@ -1209,12 +1209,12 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onEndPk(long leftUid, long rightUid, long left, long right,LivePKUserListBean bean) {
|
public void onEndPk(long leftUid, long rightUid, long left, long right, LivePKUserListBean bean) {
|
||||||
if (mLiveRyLinkMicPkPresenter != null) {
|
if (mLiveRyLinkMicPkPresenter != null) {
|
||||||
if (mLiveUid.equals(leftUid + "")) {
|
if (mLiveUid.equals(leftUid + "")) {
|
||||||
mLiveRyLinkMicPkPresenter.onPkProgressEnd(left, right,bean);
|
mLiveRyLinkMicPkPresenter.onPkProgressEnd(left, right, bean);
|
||||||
} else {
|
} else {
|
||||||
mLiveRyLinkMicPkPresenter.onPkProgressEnd(right, left,bean);
|
mLiveRyLinkMicPkPresenter.onPkProgressEnd(right, left, bean);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user