| Index: device/bluetooth/bluez/bluetooth_adapter_bluez.cc
|
| diff --git a/device/bluetooth/bluez/bluetooth_adapter_bluez.cc b/device/bluetooth/bluez/bluetooth_adapter_bluez.cc
|
| index 944c10ec75ed558efd99cbd0d15213dc2b4760d8..0fc4a44bc0d1f86f207b1a6cca96898c029c32d0 100644
|
| --- a/device/bluetooth/bluez/bluetooth_adapter_bluez.cc
|
| +++ b/device/bluetooth/bluez/bluetooth_adapter_bluez.cc
|
| @@ -524,8 +524,8 @@ void BluetoothAdapterBlueZ::DevicePropertyChanged(
|
| NotifyDeviceChanged(device_bluez);
|
| }
|
|
|
| - if (property_name == properties->gatt_services.name()) {
|
| - device_bluez->SetGattServicesDiscoveryComplete(true);
|
| + if (property_name == properties->services_resolved.name() &&
|
| + properties->services_resolved.value()) {
|
| NotifyGattServicesDiscovered(device_bluez);
|
| }
|
|
|
| @@ -546,8 +546,6 @@ void BluetoothAdapterBlueZ::DevicePropertyChanged(
|
| if (properties->connected.value()) {
|
| if (device_bluez->IsTrustable() && !properties->trusted.value())
|
| device_bluez->SetTrusted();
|
| - } else {
|
| - device_bluez->SetGattServicesDiscoveryComplete(false);
|
| }
|
|
|
| int count = 0;
|
|
|