mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-03 13:44:40 +00:00
Shutdown TTS
This commit is contained in:
parent
4ac19592da
commit
f378eff5b0
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue