summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/java/android/server/BluetoothService.java11
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