mirror of
https://github.com/rhasspy/espeak-ng.git
synced 2026-11-11 08:30:31 +00:00
eSpeakActivity: Register the receiver in onStart to avoid an IllegalArgumentEcception.
This commit is contained in:
@@ -84,9 +84,6 @@ public class eSpeakActivity extends Activity {
|
||||
((ListView)findViewById(R.id.properties)).setAdapter(mInformationView);
|
||||
mText = (EditText)findViewById(R.id.editText1);
|
||||
|
||||
final IntentFilter filter = new IntentFilter(TtsService.ESPEAK_INITIALIZED);
|
||||
registerReceiver(mOnEspeakInitialized, filter);
|
||||
|
||||
setState(State.LOADING);
|
||||
checkVoiceData();
|
||||
|
||||
@@ -110,6 +107,14 @@ public class eSpeakActivity extends Activity {
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart() {
|
||||
super.onStart();
|
||||
|
||||
final IntentFilter filter = new IntentFilter(TtsService.ESPEAK_INITIALIZED);
|
||||
registerReceiver(mOnEspeakInitialized, filter);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStop() {
|
||||
super.onStop();
|
||||
|
||||
Reference in New Issue
Block a user