From 933960b347d0a489135e396abefea40a862588dc Mon Sep 17 00:00:00 2001 From: M66B Date: Tue, 27 Aug 2024 09:21:15 +0200 Subject: [PATCH] TTS helper should not be shutdown --- .../java/eu/faircode/email/ServiceSynchronize.java | 2 -- app/src/main/java/eu/faircode/email/TTSHelper.java | 14 -------------- 2 files changed, 16 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java index 8fe0a862ed..7db5a46039 100644 --- a/app/src/main/java/eu/faircode/email/ServiceSynchronize.java +++ b/app/src/main/java/eu/faircode/email/ServiceSynchronize.java @@ -1096,8 +1096,6 @@ public class ServiceSynchronize extends ServiceBase implements SharedPreferences liveAccountNetworkState.postDestroy(); - TTSHelper.shutdown(); - try { stopForeground(true); } catch (Throwable ex) { diff --git a/app/src/main/java/eu/faircode/email/TTSHelper.java b/app/src/main/java/eu/faircode/email/TTSHelper.java index d06f3aaccd..3251dea731 100644 --- a/app/src/main/java/eu/faircode/email/TTSHelper.java +++ b/app/src/main/java/eu/faircode/email/TTSHelper.java @@ -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; - } - } }