Browse Source

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.
master
Reece H. Dunn 12 years ago
parent
commit
36b86799b3
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      android/src/com/reecedunn/espeak/eSpeakActivity.java

+ 2
- 2
android/src/com/reecedunn/espeak/eSpeakActivity.java View File

@@ -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();

Loading…
Cancel
Save