use static
This commit is contained in:
parent
3ee41bdff3
commit
bea0ff8e6e
1 changed files with 2 additions and 2 deletions
|
@ -310,7 +310,7 @@ public abstract class AbstractPrologCommandPlayer implements CommandPlayer, Stat
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean btScoStatus = false;
|
private static boolean btScoStatus = false;
|
||||||
|
|
||||||
private boolean startBtSco(Context context) {
|
private boolean startBtSco(Context context) {
|
||||||
// Establish a low quality Synchronous Connection-Oriented link to BT to e.g. interrupt a car stereo
|
// Establish a low quality Synchronous Connection-Oriented link to BT to e.g. interrupt a car stereo
|
||||||
|
@ -321,8 +321,8 @@ public abstract class AbstractPrologCommandPlayer implements CommandPlayer, Stat
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
mAudioManager.setMode(0);
|
mAudioManager.setMode(0);
|
||||||
mAudioManager.setBluetoothScoOn(true);
|
|
||||||
mAudioManager.startBluetoothSco();
|
mAudioManager.startBluetoothSco();
|
||||||
|
mAudioManager.setBluetoothScoOn(true);
|
||||||
mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION);
|
mAudioManager.setMode(AudioManager.MODE_IN_COMMUNICATION);
|
||||||
btScoStatus = true;
|
btScoStatus = true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in a new issue