diff options
author | Matthew Xie <mattx@google.com> | 2011-11-16 17:14:36 -0800 |
---|---|---|
committer | Matthew Xie <mattx@google.com> | 2011-11-16 17:14:36 -0800 |
commit | 0901e601b53b79e5ff37d9aed7acd4291a6ce9dc (patch) | |
tree | f42bec487038ad5b502f874ec5ac47819b44bc86 /core/java/android/server | |
parent | 34a62348be92034a9fb7582e51754224785568dc (diff) | |
download | frameworks_base-0901e601b53b79e5ff37d9aed7acd4291a6ce9dc.zip frameworks_base-0901e601b53b79e5ff37d9aed7acd4291a6ce9dc.tar.gz frameworks_base-0901e601b53b79e5ff37d9aed7acd4291a6ce9dc.tar.bz2 |
Call notifyIncomingA2dpConnection with correct rejected status
notifyIncomingA2dpConnection was called with wrong rejected status.
Fix this.
bug 5626476
Change-Id: Ie8e4a8bdc6f6357a62172c86c21ee547376952a4
Diffstat (limited to 'core/java/android/server')
-rw-r--r-- | core/java/android/server/BluetoothEventLoop.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/java/android/server/BluetoothEventLoop.java b/core/java/android/server/BluetoothEventLoop.java index aa62cd7..a2038c9 100644 --- a/core/java/android/server/BluetoothEventLoop.java +++ b/core/java/android/server/BluetoothEventLoop.java @@ -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. |