small tweak

This commit is contained in:
sonora 2016-07-03 16:38:34 +02:00
parent aa50076749
commit fdbce9af05

View file

@ -334,7 +334,6 @@ public abstract class AbstractPrologCommandPlayer implements CommandPlayer, Stat
}
private boolean stopBtSco(Context context) {
btScoStatus = false;
AudioManager mAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);
if (mAudioManager == null) {
return false;
@ -342,6 +341,7 @@ public abstract class AbstractPrologCommandPlayer implements CommandPlayer, Stat
mAudioManager.setBluetoothScoOn(false);
mAudioManager.stopBluetoothSco();
mAudioManager.setMode(AudioManager.MODE_NORMAL);
btScoStatus = false;
return true;
}