解决关播闪退问题

This commit is contained in:
Martin 2024-07-29 13:28:50 +08:00
parent fc7f949f7a
commit b37d278ae4

View File

@ -1759,7 +1759,6 @@ public abstract class LiveActivity extends AbsActivity implements SocketMessageL
protected void release() { protected void release() {
EventBus.getDefault().unregister(this); EventBus.getDefault().unregister(this);
LiveHttpUtil.cancel(LiveHttpConsts.SEND_DANMU); LiveHttpUtil.cancel(LiveHttpConsts.SEND_DANMU);
LoadDian9TuUtil.clearBitmap();
if (mKeyBoardHeightUtil != null) { if (mKeyBoardHeightUtil != null) {
mKeyBoardHeightUtil.release(); mKeyBoardHeightUtil.release();
} }
@ -1808,6 +1807,11 @@ public abstract class LiveActivity extends AbsActivity implements SocketMessageL
Constants.isSend = "0"; Constants.isSend = "0";
} }
private void claerBitmap(){
LoadDian9TuUtil.clearBitmap();
}
/** /**
* 显示个人资料弹窗 * 显示个人资料弹窗
*/ */
@ -1865,6 +1869,7 @@ public abstract class LiveActivity extends AbsActivity implements SocketMessageL
@Override @Override
protected void onDestroy() { protected void onDestroy() {
release(); release();
claerBitmap();
super.onDestroy(); super.onDestroy();
} }