Allow multiple HID devices to be connected.
Change-Id: I40d9820b756c1e3bb4e773fbb78212e2716e99bf
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user