From 6179965e85ec17b836084a4a3d7963d8a7a1e1cc Mon Sep 17 00:00:00 2001 From: Jaikumar Ganesh Date: Sun, 20 Sep 2009 16:01:21 -0700 Subject: [PATCH] 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 --- core/java/android/server/BluetoothService.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/core/java/android/server/BluetoothService.java b/core/java/android/server/BluetoothService.java index 7df9141896ae0..26007c5cfc41d 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