mirror of
https://github.com/M66B/FairEmail.git
synced 2026-05-19 05:29:50 +02:00
TTS helper should not be shutdown
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user