am 4fe6f603: am 718970bc: Merge change 26061 into eclair

Merge commit '4fe6f603cafd2f1b54051809182c308a4077b783'

* commit '4fe6f603cafd2f1b54051809182c308a4077b783':
  Send the UUID intent even if apps have not requested for it.
This commit is contained in:
Jaikumar Ganesh
2009-09-20 17:51:57 -07:00
committed by Android Git Automerger

View File

@@ -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