Allow multiple HID devices to be connected.

Change-Id: I40d9820b756c1e3bb4e773fbb78212e2716e99bf
This commit is contained in:
Jaikumar Ganesh
2010-07-21 12:08:12 -07:00
parent de07503a38
commit 05a1863ceb

View File

@@ -1240,7 +1240,8 @@ public class BluetoothService extends IBluetooth.Stub {
"Need BLUETOOTH_ADMIN permission");
String objectPath = getObjectPathFromAddress(device.getAddress());
if (objectPath == null || getConnectedInputDevices().length != 0 ||
if (objectPath == null ||
getInputDeviceState(device) != BluetoothInputDevice.STATE_DISCONNECTED ||
getInputDevicePriority(device) == BluetoothInputDevice.PRIORITY_OFF) {
return false;
}