Choose AudioManager SCO action device depended

Closes #6367
//FREEBIE
fork-5.53.8
mcloo 2017-03-12 02:43:48 +01:00 zatwierdzone przez Moxie Marlinspike
rodzic 9d13b9437c
commit 1683bb4636
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -58,7 +58,7 @@ public class BluetoothStateManager {
context.registerReceiver(bluetoothConnectionReceiver, new IntentFilter(BluetoothHeadset.ACTION_CONNECTION_STATE_CHANGED));
}
Intent sticky = context.registerReceiver(bluetoothScoReceiver, new IntentFilter(AudioManager.ACTION_SCO_AUDIO_STATE_CHANGED));
Intent sticky = context.registerReceiver(bluetoothScoReceiver, new IntentFilter(getScoChangeIntent()));
if (sticky != null) {
bluetoothScoReceiver.onReceive(context, sticky);