am 1eefb529: Merge "Phone crash when old callback func is woken up when enabling BT."

* commit '1eefb529c78be5336f6c8a1b8ac2c32e268d4294':
  Phone crash when old callback func is woken up when enabling BT.
This commit is contained in:
Jaikumar Ganesh
2011-02-28 16:00:01 -08:00
committed by Android Git Automerger

View File

@ -593,6 +593,8 @@ class BluetoothEventLoop {
private void onDiscoverServicesResult(String deviceObjectPath, boolean result) {
String address = mBluetoothService.getAddressFromObjectPath(deviceObjectPath);
if (address == null) return;
// We don't parse the xml here, instead just query Bluez for the properties.
if (result) {
mBluetoothService.updateRemoteDevicePropertiesCache(address);