Skip to content

Commit 20d483c

Browse files
authored
Merge pull request #251 from davisk4rpi/ble-unavailable-state-update
fix(android): Resets bluetooth state after disconnecting from the only available headset
2 parents e318673 + cd45eff commit 20d483c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

android/src/main/java/com/zxcpoiu/incallmanager/AppRTC/AppRTCBluetoothManager.java

+1
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ private void updateDeviceList() {
145145
boolean needChange = false;
146146
if (bluetoothAudioDevice != null && newBtDevice == null) {
147147
needChange = true;
148+
bluetoothState = State.HEADSET_UNAVAILABLE;
148149
} else if (bluetoothAudioDevice == null && newBtDevice != null) {
149150
needChange = true;
150151
} else if (bluetoothAudioDevice != null && bluetoothAudioDevice.getId() != newBtDevice.getId()) {

0 commit comments

Comments
 (0)