1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-03 13:44:40 +00:00

Shutdown TTS

This commit is contained in:
M66B 2024-09-10 11:24:47 +02:00
parent 4ac19592da
commit f378eff5b0

View file

@ -93,6 +93,17 @@ public class TTSHelper {
public void onDone(String utteranceId) {
Log.i("TTS done=" + utteranceId);
report(utteranceId);
synchronized (lock) {
if (queue.isEmpty())
try {
Log.i("TTS shutdown");
instance.shutdown();
} catch (Throwable ex) {
Log.e(ex);
} finally {
instance = null;
}
}
}
@Override