修改盲盒问题

This commit is contained in:
18401019693 2023-06-03 15:20:18 +08:00
parent aacd8b8735
commit 35f16bdcae

View File

@ -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())) {