From 780f9a33288d21f5990915794bf35ae0541daaf0 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Fri, 14 Oct 2022 15:55:24 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E6=BB=91?= =?UTF-8?q?=E5=8A=A8=E7=9B=B4=E6=92=AD=E9=97=B4=E6=97=A0=E6=B3=95=E5=86=8D?= =?UTF-8?q?=E6=AC=A1=E7=82=B9=E4=BA=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/yunbao/live/activity/LiveAudienceActivity.java | 1 + .../main/java/com/yunbao/live/views/PortraitLiveManager.java | 3 +++ 2 files changed, 4 insertions(+) diff --git a/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java b/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java index 097bedea5..9c68fc0ad 100644 --- a/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java +++ b/live/src/main/java/com/yunbao/live/activity/LiveAudienceActivity.java @@ -210,6 +210,7 @@ public class LiveAudienceActivity extends LiveActivity { } else { verticalViewPager.setEnableScroll(IMLoginManager.get(mContext).isSlide()); mCurrentItem = position; + manager.resetLight(); Log.e(TAG, "mCurrentItem:" + mCurrentItem); if (mCurrentItem == itemModelList.size() - 1) { MainNetManager.get(mContext) diff --git a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java index a1b7fe681..5524b1d90 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -1475,6 +1475,9 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe mLiveRoomViewHolder.playLightAnim(); } } + public void resetLight(){ + mLighted=false; + } public void setCoinNotEnough(boolean coinNotEnough) { mCoinNotEnough = coinNotEnough;