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

Commit 302afb93 authored by Matthew Xie's avatar Matthew Xie Committed by Android (Google) Code Review
Browse files

Merge "Call notifyIncomingA2dpConnection with correct rejected status" into ics-mr1

parents 1125f89e 0901e601
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -784,12 +784,12 @@ class BluetoothEventLoop {
                // machine.  We don't handle AVCTP signals currently. We only send
                // intents for AVDTP state changes. We need to handle both of them in
                // some cases. For now, just don't move to incoming state in this case.
                mBluetoothService.notifyIncomingA2dpConnection(address, true);
                mBluetoothService.notifyIncomingA2dpConnection(address, false);
            } else {
                Log.i(TAG, "" + authorized +
                      "Incoming A2DP / AVRCP connection from " + address);
                mA2dp.allowIncomingConnect(device, authorized);
                mBluetoothService.notifyIncomingA2dpConnection(address, false);
                mBluetoothService.notifyIncomingA2dpConnection(address, true);
            }
        } else if (BluetoothUuid.isInputDevice(uuid)) {
            // We can have more than 1 input device connected.