Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: error on empty charSequenceText. #216

Open
wants to merge 2 commits into
base: compose
Choose a base branch
from

Conversation

sheng-ri
Copy link

https://github.com/gedoor/legado/blob/f6c025d160f22a7d52adf754e1c311f20791c30b/app/src/main/java/io/legado/app/help/TTS.kt#L82

var result = tts.speak("", TextToSpeech.QUEUE_FLUSH, null, null)

在阅读app中使用时,都会在第一次触发NPE异常。
针对这种TTS合成请求,应该是不需要合成的,
按照要刷新队列的思路,应该直接判断为成功进行返回。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant