From 18069a726d3d582b0de0133a0e5ddf0a9b20e274 Mon Sep 17 00:00:00 2001 From: zlzw <583819556@qq.com> Date: Tue, 13 Sep 2022 18:27:05 +0800 Subject: [PATCH] =?UTF-8?q?=E9=94=80=E6=AF=81=E5=BC=80=E6=92=ADActivity?= =?UTF-8?q?=E6=97=B6=E6=B8=85=E7=90=86=E9=9D=99=E6=80=81ViewHolder?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../yunbao/live/activity/LiveRyAnchorActivity.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/live/src/main/java/com/yunbao/live/activity/LiveRyAnchorActivity.java b/live/src/main/java/com/yunbao/live/activity/LiveRyAnchorActivity.java index b76de6904..8dffc63d6 100644 --- a/live/src/main/java/com/yunbao/live/activity/LiveRyAnchorActivity.java +++ b/live/src/main/java/com/yunbao/live/activity/LiveRyAnchorActivity.java @@ -136,6 +136,7 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl public static int backIndex = 0;//0=未判断,1=已判断 + @Override protected int getLayoutId() { return R.layout.activity_live_anchor; @@ -850,6 +851,18 @@ public class LiveRyAnchorActivity extends LiveActivity implements LiveFunctionCl protected void onDestroy() { LiveHttpUtil.cancel(LiveHttpConsts.ANCHOR_CHECK_LIVE); super.onDestroy(); + if(mLivePushViewHolder!=null) { + mLivePushViewHolder.onDestroy(); + } + if(mLiveReadyViewHolder!=null){ + mLiveReadyViewHolder.onDestroy(); + } + if(mLiveAnchorViewHolder!=null){ + mLiveAnchorViewHolder.onDestroy(); + } + mLivePushViewHolder=null; + mLiveReadyViewHolder=null; + mLiveAnchorViewHolder=null; L.e("LiveAnchorActivity-------onDestroy------->"); }