Merge "Phone crash when old callback func is woken up when enabling BT."
This commit is contained in:
@ -593,6 +593,8 @@ class BluetoothEventLoop {
|
|||||||
|
|
||||||
private void onDiscoverServicesResult(String deviceObjectPath, boolean result) {
|
private void onDiscoverServicesResult(String deviceObjectPath, boolean result) {
|
||||||
String address = mBluetoothService.getAddressFromObjectPath(deviceObjectPath);
|
String address = mBluetoothService.getAddressFromObjectPath(deviceObjectPath);
|
||||||
|
if (address == null) return;
|
||||||
|
|
||||||
// We don't parse the xml here, instead just query Bluez for the properties.
|
// We don't parse the xml here, instead just query Bluez for the properties.
|
||||||
if (result) {
|
if (result) {
|
||||||
mBluetoothService.updateRemoteDevicePropertiesCache(address);
|
mBluetoothService.updateRemoteDevicePropertiesCache(address);
|
||||||
|
Reference in New Issue
Block a user