1. 独立app内存泄漏优化

This commit is contained in:
wangcongtao
2020-09-27 19:16:54 +08:00
parent 29be9de7db
commit 53d1ac0b3f
13 changed files with 62 additions and 17 deletions

View File

@@ -131,6 +131,11 @@ public class ShareControl implements IMogoShareManager, IMogoIntentListener,
mContext = context;
}
@Override
public void releaseContext() {
mContext = mContext.getApplicationContext();
}
private void realShowDialog() {
if (mShareDialog == null) {
Logger.d(TAG, "realShowDialog context : " + mContext);

View File

@@ -82,7 +82,7 @@ object SeekHelpManager {
if(!isSeeking) {
isSeeking = true
if (this.context == null) {
this.context = context
this.context = context.applicationContext
}
aiAssist = AIAssist.getInstance(context)