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

Commit 1bce803f authored by Matthew Xie's avatar Matthew Xie Committed by Android Git Automerger
Browse files

am 37fb92fb: am 302afb93: Merge "Call notifyIncomingA2dpConnection with...

am 37fb92fb: am 302afb93: Merge "Call notifyIncomingA2dpConnection with correct rejected status" into ics-mr1

* commit '37fb92fb':
  Call notifyIncomingA2dpConnection with correct rejected status
parents 280271d1 37fb92fb
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.