diff options
| author | 2009-09-20 16:01:21 -0700 | |
|---|---|---|
| committer | 2009-09-20 16:16:08 -0700 | |
| commit | 6179965e85ec17b836084a4a3d7963d8a7a1e1cc (patch) | |
| tree | 92bb248e9f1360f36abded458f84391ca5f57746 | |
| parent | 2092361d586a20190c9137fb3cc9434cdc9ec99f (diff) | |
Send the UUID intent even if apps have not requested for it.
This will help apps listening to this intent to update icons etc
if the remote uuid changes. For example, the settings app used to
refresh the icons when the class bits change. It can do it now
when the remote ends uuids changes too.
Change-Id: Ib9af45780e83118d8877b0ef16f5b39b87fb4bef
| -rw-r--r-- | core/java/android/server/BluetoothService.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/java/android/server/BluetoothService.java b/core/java/android/server/BluetoothService.java index 7df9141896ae..26007c5cfc41 100644 --- a/core/java/android/server/BluetoothService.java +++ b/core/java/android/server/BluetoothService.java @@ -1192,14 +1192,13 @@ public class BluetoothService extends IBluetooth.Stub { /* Broadcast the Uuid intent */ /*package*/ synchronized void sendUuidIntent(String address) { - if (mUuidIntentTracker.contains(address)) { - ParcelUuid[] uuid = getUuidFromCache(address); - Intent intent = new Intent(BluetoothDevice.ACTION_UUID); - intent.putExtra(BluetoothDevice.EXTRA_UUID, uuid); - mContext.sendBroadcast(intent, BLUETOOTH_ADMIN_PERM); + ParcelUuid[] uuid = getUuidFromCache(address); + Intent intent = new Intent(BluetoothDevice.ACTION_UUID); + intent.putExtra(BluetoothDevice.EXTRA_UUID, uuid); + mContext.sendBroadcast(intent, BLUETOOTH_ADMIN_PERM); + if (mUuidIntentTracker.contains(address)) mUuidIntentTracker.remove(address); - } } @Override |