mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-07 15:24:02 +00:00
eSpeakActivity.java: fix the 'X has leaked a ServiceConnection' error.
The TTS engine should be destroyed in the onStop method, not the onDestroy method to prevent it being used in the stopped state.
This commit is contained in:
@@ -79,8 +79,8 @@ public class eSpeakActivity extends Activity {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroy() {
|
||||
super.onDestroy();
|
||||
public void onStop() {
|
||||
super.onStop();
|
||||
|
||||
if (mTts != null) {
|
||||
mTts.shutdown();
|
||||
|
||||
Reference in New Issue
Block a user