prepare next test for #1351 and #2810

This commit is contained in:
sonora 2016-07-20 13:17:03 +02:00
parent 5deb01b7a9
commit 0fe18da322
3 changed files with 3 additions and 5 deletions

View file

@ -410,6 +410,9 @@ public class OsmandApplication extends MultiDexApplication {
}
} else {
// Test for Issues #1351 and #2810
//player = null;
if (player == null || !Algorithms.objectEquals(voiceProvider, player.getCurrentVoice()) || force) {
appInitializer.initVoiceDataInDifferentThread(uiContext, voiceProvider, run, showDialog);
}

View file

@ -60,9 +60,6 @@ public class MediaCommandPlayerImpl extends AbstractPrologCommandPlayer implemen
}
if (mediaPlayer != null){
mediaPlayer.stop();
//Nullifying here fixes #1351, but there should be a better fix.
//mediaPlayer.release();
//mediaPlayer = null;
}
if (ctx != null) {
abandonAudioFocus();

View file

@ -133,8 +133,6 @@ public class TTSCommandPlayerImpl extends AbstractPrologCommandPlayer {
ttsRequests = 0;
if (mTts != null){
mTts.stop();
//Nullifying here may fix #2810, but there should be a better fix.
//mTts = null;
}
if (ctx != null) {
abandonAudioFocus();