try less intrusive fix first

This commit is contained in:
sonora 2016-07-17 11:38:07 +02:00
parent ec4edf66e2
commit c569276d86
2 changed files with 2 additions and 2 deletions

View file

@ -425,7 +425,7 @@ public class AppInitializer implements IProgress {
public void initVoiceDataInDifferentThread(final Activity uiContext, final String voiceProvider, final Runnable run, boolean showDialog) {
public void synchronized initVoiceDataInDifferentThread(final Activity uiContext, final String voiceProvider, final Runnable run, boolean showDialog) {
final ProgressDialog dlg = showDialog ? ProgressDialog.show(uiContext, app.getString(R.string.loading_data),
app.getString(R.string.voice_data_initializing)) : null;
new Thread(new Runnable() {

View file

@ -134,7 +134,7 @@ public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer {
if (mTts != null){
mTts.stop();
//Test to see if this fixes #2810
mTts = null;
//mTts = null;
}
if (ctx != null) {
abandonAudioFocus();