Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 05a1863c authored by Jaikumar Ganesh's avatar Jaikumar Ganesh
Browse files

Allow multiple HID devices to be connected.

Change-Id: I40d9820b756c1e3bb4e773fbb78212e2716e99bf
parent de07503a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
        }