销毁开播Activity时清理静态ViewHolder
This commit is contained in:
parent
b515e9eea2
commit
18069a726d
@ -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------->");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user