[3.2.0][Fix]解决首次安装Tts不播报的问题

原因:
先分发数据且没缓存,而后才去监听,没有收到sn相关的事件
This commit is contained in:
chenfufeng
2023-05-24 17:02:31 +08:00
parent db7a48302b
commit beacde1fed
4 changed files with 22 additions and 4 deletions

View File

@@ -8,6 +8,7 @@ import android.os.Build;
import android.os.Environment;
import android.provider.Settings;
import android.text.TextUtils;
import android.util.Log;
import android.util.Pair;
import androidx.annotation.MainThread;
@@ -134,7 +135,7 @@ public class PadTTS implements IMogoTTS, VoiceClient.VoiceCmdCallBack, OnTtsList
if (!mHasAuth && sn != null && !sn.isEmpty() && !isAuthing) {
initTtsConfig(sn);
} else {
CallerLogger.INSTANCE.d(TAG, "不满足Tts初始化条件!" + mHasAuth + "," + sn + "," + isAuthing);
Log.d(TAG, "不满足Tts初始化条件!" + mHasAuth + "," + sn + "," + isAuthing);
}
}