1. 优化模块加载、去掉部分逻辑、升级socket版本号

This commit is contained in:
wangcongtao
2020-11-23 17:49:55 +08:00
parent d8eb3569b9
commit 0a3c77cef0
23 changed files with 122 additions and 95 deletions

View File

@@ -6,6 +6,7 @@ import com.alibaba.android.arouter.launcher.ARouter;
import com.mogo.tts.base.IMogoTTS;
import com.mogo.tts.base.MogoTTSConstants;
import com.mogo.tts.base.PreemptType;
import com.mogo.utils.logger.Logger;
/**
* @author congtaowang
@@ -15,6 +16,8 @@ import com.mogo.tts.base.PreemptType;
*/
public class AIAssist {
private static final String TAG = "AIAssist";
private static volatile AIAssist sInstance;
private IMogoTTS mTTS;
@@ -32,7 +35,11 @@ public class AIAssist {
public synchronized void release() {
if ( mTTS != null ) {
mTTS.release();
try {
mTTS.release();
} catch ( Exception e ) {
Logger.e( TAG, e, "release" );
}
}
sInstance = null;
}