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

Commit 995164b7 authored by Pawit Pornkitprasan's avatar Pawit Pornkitprasan
Browse files

Fix bluetooth HID incoming connection not working since 2.3.5 merge

Change-Id: I41362af226c05076c6e431c445c06ac3e3789853
parent 5782d5c0
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -567,6 +567,9 @@ class BluetoothEventLoop {
            authorized = hid.getHidDevicePriority(device) > BluetoothHid.PRIORITY_OFF;
            if (authorized) {
                Log.i(TAG, "Allowing incoming HID connection from " + address);
                // This is not a typo. We need to tell the lower layer that we're accepting the
                // connection and the method to do that is in BluetoothA2dp.
                a2dp.allowIncomingConnect(device, authorized);
            } else {
                Log.i(TAG, "Rejecting incoming HID connection from " + address);
            }