Loading src/com/android/bluetooth/btservice/RemoteDevices.java +5 −0 Original line number Diff line number Diff line Loading @@ -437,6 +437,11 @@ final class RemoteDevices { intent = new Intent(BluetoothDevice.ACTION_ACL_CONNECTED); debugLog("aclStateChangeCallback: State:Connected to Device:" + device); } else { if (device.getBondState() == BluetoothDevice.BOND_BONDING) { /*Broadcasting PAIRING_CANCEL intent as well in this case*/ intent = new Intent(BluetoothDevice.ACTION_PAIRING_CANCEL); mAdapterService.sendBroadcast(intent, mAdapterService.BLUETOOTH_ADMIN_PERM); } intent = new Intent(BluetoothDevice.ACTION_ACL_DISCONNECTED); debugLog("aclStateChangeCallback: State:DisConnected to Device:" + device); } Loading Loading
src/com/android/bluetooth/btservice/RemoteDevices.java +5 −0 Original line number Diff line number Diff line Loading @@ -437,6 +437,11 @@ final class RemoteDevices { intent = new Intent(BluetoothDevice.ACTION_ACL_CONNECTED); debugLog("aclStateChangeCallback: State:Connected to Device:" + device); } else { if (device.getBondState() == BluetoothDevice.BOND_BONDING) { /*Broadcasting PAIRING_CANCEL intent as well in this case*/ intent = new Intent(BluetoothDevice.ACTION_PAIRING_CANCEL); mAdapterService.sendBroadcast(intent, mAdapterService.BLUETOOTH_ADMIN_PERM); } intent = new Intent(BluetoothDevice.ACTION_ACL_DISCONNECTED); debugLog("aclStateChangeCallback: State:DisConnected to Device:" + device); } Loading