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------->"); }