parent
5deb01b7a9
commit
0fe18da322
3 changed files with 3 additions and 5 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue