From 9ba6329873109f6355736fa4670b048d8d87162e Mon Sep 17 00:00:00 2001 From: 18401019693 Date: Thu, 25 Aug 2022 15:14:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=EF=BC=9A=20=E7=9B=B4?= =?UTF-8?q?=E6=92=AD=E9=97=B4=E6=BB=91=E5=8A=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/src/main/res/drawable/bg_live_tota.xml | 2 +- .../com/yunbao/live/views/PortraitLiveManager.java | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/common/src/main/res/drawable/bg_live_tota.xml b/common/src/main/res/drawable/bg_live_tota.xml index 74ca8bdc9..97920b7a7 100644 --- a/common/src/main/res/drawable/bg_live_tota.xml +++ b/common/src/main/res/drawable/bg_live_tota.xml @@ -1,5 +1,5 @@ - + \ No newline at end of file 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 9bb9bdb43..de48feb04 100644 --- a/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java +++ b/live/src/main/java/com/yunbao/live/views/PortraitLiveManager.java @@ -4,6 +4,7 @@ import android.app.Activity; import android.app.Dialog; import android.content.Intent; import android.content.res.Configuration; +import android.graphics.drawable.AnimationDrawable; import android.os.CountDownTimer; import android.text.TextUtils; import android.util.Log; @@ -27,6 +28,7 @@ import com.tencent.imsdk.v2.V2TIMManager; import com.yunbao.common.CommonAppConfig; import com.yunbao.common.CommonAppContext; import com.yunbao.common.Constants; +import com.yunbao.common.bean.AnchorRecommendItemModel; import com.yunbao.common.bean.UserBean; import com.yunbao.common.custom.MyViewPager; import com.yunbao.common.event.FollowEvent; @@ -254,6 +256,8 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe @Override public void onRemove() { if (mLiveAudienceViewHolder != null) { + mLiveAudienceViewHolder.removeFromParent(); + mLiveAudienceViewHolder.countDownTimerTrickery = null; mLiveAudienceViewHolder.removeCallbacks(); } mLiveAudienceViewHolder = null; @@ -308,11 +312,7 @@ public class PortraitLiveManager implements LivePlayListener, SocketMessageListe if (mLiveRyLinkMicPkPresenter != null) { mLiveRyLinkMicPkPresenter.clearData(); } - if (mLiveAudienceViewHolder != null) { - mLiveAudienceViewHolder.removeFromParent(); - mLiveAudienceViewHolder.countDownTimerTrickery = null; - mLiveAudienceViewHolder = null; - } + } @Override