am 15bb4754: am d2c81986: b/2652059 Refresh UI after bond state change

Merge commit '15bb47545686395c0d94b54dd67c4f080fe625e5' into kraken

* commit '15bb47545686395c0d94b54dd67c4f080fe625e5':
  b/2652059 Refresh UI after bond state change
This commit is contained in:
Michael Chan
2010-05-10 09:50:04 -07:00
committed by Android Git Automerger

View File

@@ -751,10 +751,7 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
mProfiles.clear();
BluetoothJob job = workQueue.peek();
if (job == null) {
return;
}
if (job != null) {
// Remove the first item and process the next one
if (job.command == BluetoothCommand.REMOVE_BOND
&& job.cachedDevice.mDevice.equals(mDevice)) {
@@ -769,12 +766,14 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
// Check to see if we need to remove the stale items from the queue
if (!pruneQueue(null)) {
// nothing in the queue was modify. Just ignore the notification and return.
refresh();
return;
}
}
processCommands();
}
}
refresh();
}