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

Commit 03f01cbc authored by Himanshu Rawat's avatar Himanshu Rawat
Browse files

HidHost: Extract BluetoothDevice from the message correctly

Test: mmm packages/modules/Bluetooth
Bug: 331209258
Bug: 320762367
Change-Id: Id21d631c0df014d90bf6cafb89f27fe4dc0a7b6c
parent 02995dab
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -408,7 +408,7 @@ public class HidHostService extends ProfileService {
            };

    private void handleMessageSetPreferredTransport(Message msg) {
        BluetoothDevice device = mAdapterService.getDeviceFromByte((byte[]) msg.obj);
        BluetoothDevice device = (BluetoothDevice) msg.obj;
        int transport = msg.arg1;

        int prevTransport = getTransport(device);