Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f252c0bf authored by Zhengping Jiang's avatar Zhengping Jiang
Browse files

floss: services are resolved when receiving uuids

Label services as resolved when uuids are received.

Bug: 269521515
Tag: #floss
Test: build, pair and check log
Change-Id: I5395c543cb44ee1a8b21f73fe543fac1059026a1
parent 641eb357
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1141,9 +1141,6 @@ impl BtifBluetoothCallbacks for Bluetooth {
                d.update_properties(&properties);
                d.seen();

                // Services are resolved.
                d.services_resolved = true;

                Bluetooth::send_metrics_remote_device_info(d);

                let info = d.info.clone();
@@ -1156,6 +1153,9 @@ impl BtifBluetoothCallbacks for Bluetooth {
                    })
                    .map_or(false, |v| v);

                // Services are resolved when uuids are fetched.
                d.services_resolved = has_uuids;

                if d.wait_to_connect && has_uuids {
                    d.wait_to_connect = false;