Update Settings and Decoupled Bluetooth

This commit is contained in:
Hariharan Mudaliar 2025-12-20 13:39:13 +05:30
commit 97b30858ca
No known key found for this signature in database
GPG key ID: 025583EB0BE5640E
6 changed files with 156 additions and 49 deletions

View file

@ -1456,6 +1456,14 @@ class BluetoothAudioManager: ObservableObject {
func refreshConnectedDeviceBatteries() {
refreshBatteryLevelsForConnectedDevices()
}
@MainActor
func activeDeviceIconSymbol() -> String? {
if let prioritizedDevice = connectedDevices.last ?? lastConnectedDevice {
return prioritizedDevice.deviceType.sfSymbol
}
return nil
}
}
// MARK: - CoreBluetooth Battery Reader