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

Commit 0c6cb717 authored by Jaikumar Ganesh's avatar Jaikumar Ganesh Committed by Android (Google) Code Review
Browse files

Merge "Allow multiple HID devices to be connected."

parents d1554622 05a1863c
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;
        }