try less intrusive fix first
This commit is contained in:
parent
ec4edf66e2
commit
c569276d86
2 changed files with 2 additions and 2 deletions
|
@ -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),
|
final ProgressDialog dlg = showDialog ? ProgressDialog.show(uiContext, app.getString(R.string.loading_data),
|
||||||
app.getString(R.string.voice_data_initializing)) : null;
|
app.getString(R.string.voice_data_initializing)) : null;
|
||||||
new Thread(new Runnable() {
|
new Thread(new Runnable() {
|
||||||
|
|
|
@ -134,7 +134,7 @@ public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer {
|
||||||
if (mTts != null){
|
if (mTts != null){
|
||||||
mTts.stop();
|
mTts.stop();
|
||||||
//Test to see if this fixes #2810
|
//Test to see if this fixes #2810
|
||||||
mTts = null;
|
//mTts = null;
|
||||||
}
|
}
|
||||||
if (ctx != null) {
|
if (ctx != null) {
|
||||||
abandonAudioFocus();
|
abandonAudioFocus();
|
||||||
|
|
Loading…
Reference in a new issue