diff options
author | Ang Li <angli@google.com> | 2014-09-08 15:35:14 -0700 |
---|---|---|
committer | Ang Li <angli@google.com> | 2014-09-08 15:43:30 -0700 |
commit | beb0497605ef61062d0565d85897f4c842845a8f (patch) | |
tree | e9b92952b0031752e07c6201d0457ed937761fb8 /src/com/android/bluetooth/map/BluetoothMapService.java | |
parent | 5ca43226937e098a2404d61de3f991af5c6a2689 (diff) | |
download | android_packages_apps_Bluetooth-beb0497605ef61062d0565d85897f4c842845a8f.tar.gz android_packages_apps_Bluetooth-beb0497605ef61062d0565d85897f4c842845a8f.tar.bz2 android_packages_apps_Bluetooth-beb0497605ef61062d0565d85897f4c842845a8f.zip |
Change broadcast ACTION_CONNECTION_ACCESS_REQUEST to be ordered.
Making this broadcast ordered makes it possible to be intercepted
before Settings get it. This is cruicial to Android Audo's use case
and test automation.
The previous change we put in:
https://googleplex-android-review.git.corp.google.com/#/c/499135
was accidentally overwritten by
https://googleplex-android-review.git.corp.google.com/#/c/503267
We are putting this change back in, and making similar changes for
PBAP and HFP.
Change-Id: Ia9b4c22a05d0c9beb1485b53ddf04c45fa210526
Diffstat (limited to 'src/com/android/bluetooth/map/BluetoothMapService.java')
-rwxr-xr-x | src/com/android/bluetooth/map/BluetoothMapService.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/bluetooth/map/BluetoothMapService.java b/src/com/android/bluetooth/map/BluetoothMapService.java index 077e2a3b6..36c8c9b3e 100755 --- a/src/com/android/bluetooth/map/BluetoothMapService.java +++ b/src/com/android/bluetooth/map/BluetoothMapService.java @@ -790,7 +790,7 @@ public class BluetoothMapService extends ProfileService { intent.putExtra(BluetoothDevice.EXTRA_ACCESS_REQUEST_TYPE, BluetoothDevice.REQUEST_TYPE_MESSAGE_ACCESS); intent.putExtra(BluetoothDevice.EXTRA_DEVICE, mRemoteDevice); - sendBroadcast(intent, BLUETOOTH_ADMIN_PERM); + sendOrderedBroadcast(intent, BLUETOOTH_ADMIN_PERM); if (DEBUG) Log.d(TAG, "waiting for authorization for connection from: " + sRemoteDeviceName); |