mirror of
https://github.com/M66B/FairEmail.git
synced 2025-03-15 08:29:24 +00:00
TTS helper should not be shutdown
This commit is contained in:
parent
fb37f155e5
commit
933960b347
2 changed files with 0 additions and 16 deletions
|
@ -1096,8 +1096,6 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences
|
|||
|
||||
liveAccountNetworkState.postDestroy();
|
||||
|
||||
TTSHelper.shutdown();
|
||||
|
||||
try {
|
||||
stopForeground(true);
|
||||
} catch (Throwable ex) {
|
||||
|
|
|
@ -90,18 +90,4 @@ public class TTSHelper {
|
|||
speak.run();
|
||||
}
|
||||
}
|
||||
|
||||
static void shutdown() {
|
||||
synchronized (lock) {
|
||||
if (instance != null)
|
||||
try {
|
||||
Log.i("TTS shutdown");
|
||||
instance.shutdown();
|
||||
instance = null;
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
}
|
||||
status = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue