From 53121cf110f358c30ea39224bc3ff0f4c1b56e3f Mon Sep 17 00:00:00 2001 From: Jaikumar Ganesh Date: Wed, 19 Aug 2009 12:25:37 -0700 Subject: [PATCH] Fix device address check when profile state changes. --- src/com/android/settings/bluetooth/CachedBluetoothDevice.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/com/android/settings/bluetooth/CachedBluetoothDevice.java b/src/com/android/settings/bluetooth/CachedBluetoothDevice.java index a4e3004929b..d13f77c03d0 100644 --- a/src/com/android/settings/bluetooth/CachedBluetoothDevice.java +++ b/src/com/android/settings/bluetooth/CachedBluetoothDevice.java @@ -231,7 +231,7 @@ public class CachedBluetoothDevice implements Comparable 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.