Fix device address check when profile state changes.

This commit is contained in:
Jaikumar Ganesh
2009-08-19 12:25:37 -07:00
parent 2c9b21f048
commit 53121cf110

View File

@@ -231,7 +231,7 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
BluetoothJob job = workQueue.peek();
if (job == null) {
return;
} else if (job.cachedDevice.mDevice.equals(mDevice)) {
} else if (!job.cachedDevice.mDevice.equals(mDevice)) {
// This can happen in 2 cases: 1) BT device initiated pairing and
// 2) disconnects of one headset that's triggered by connects of
// another.