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

Commit a8e5747f authored by Hsin-chen Chuang's avatar Hsin-chen Chuang Committed by Automerger Merge Worker
Browse files

Merge "floss: SetName: Don't set the property if unchanged" into main am: 00bd8e95 am: 60d79574

parents 146885a0 60d79574
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2247,6 +2247,9 @@ impl IBluetooth for Bluetooth {
    }

    fn set_name(&self, name: String) -> bool {
        if self.get_name() == name {
            return true;
        }
        self.intf.lock().unwrap().set_adapter_property(BluetoothProperty::BdName(name)) == 0
    }