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:
Reece H. Dunn
2013-03-13 22:45:21 +00:00
parent 904d3568d2
commit 36b86799b3
@@ -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();