mirror of
https://github.com/M66B/FairEmail.git
synced 2026-05-15 11:58:38 +02:00
Shutdown TTS
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user