From 8b3f8d783edb251425f868937fb5d8385fc18149 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Mon, 31 Oct 2022 17:53:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=8A=A8=E6=B6=88?= =?UTF-8?q?=E6=81=AF=E9=87=8D=E5=A4=8D=E5=8F=91=E9=80=81=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/live/views/LiveAudienceViewHolder.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java b/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java index 046653d28..f8253963d 100644 --- a/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java +++ b/live/src/main/java/com/yunbao/live/views/LiveAudienceViewHolder.java @@ -409,6 +409,9 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder { handler.postDelayed(runnable = new Runnable() { @Override public void run() { + if(!liveUid.equals(mLiveUid)){ + return; + } if (isattention == 0) { LiveChatBean lvBean = new LiveChatBean(); lvBean.setType(-1); @@ -418,6 +421,7 @@ public class LiveAudienceViewHolder extends AbsLiveViewHolder { LiveChatBean lvBean2 = new LiveChatBean(); lvBean2.setType(-2); LiveRoomViewHolder.insertChat(lvBean2, 1); + Log.i("chatMgs", liveUid+"|"+mLiveUid); } }, 10000);//3秒后执行Runnable中的run方法 }