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

Commit e9177bff authored by howardchung's avatar howardchung
Browse files

Floss: Fix admin device policy effect update

The properties pass to remote_device_properties_changed is only what was
changed. We don't need to update the policy effect if UUID isn't
changed.

Bug: 259881232
Test: run ep_outgoing_ble_hid_services_not_in_allowlist locally
Tag: #floss
Change-Id: Iabdd2ab9b81854e0cf9809174a3674de307ad6ad
parent 3e6a83ce
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -181,6 +181,11 @@ impl BluetoothAdmin {
            _ => None,
        });

        // No need to update policy effect if remote UUID is not changed.
        if new_uuids.is_none() {
            return;
        }

        let new_effect = self.new_device_policy_effect(new_uuids);
        let cur_effect = self.device_policy_affect_cache.get(remote_device);