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

Commit 8b290950 authored by SongFerngWang's avatar SongFerngWang
Browse files

[Unicast] Update the icons in LEA device settings

This is the step#2 at comment#4, showing the headphone icon or
the speaker icon by the Bluetooth Class.

Bug: 258009444
Test: build pass
Change-Id: Ic22bef443053b0975b20c6a6df8a80bb817ccf4e
parent c307a592
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -275,7 +275,15 @@ public class LeAudioProfile implements LocalBluetoothProfile {
    }

    public int getDrawableResource(BluetoothClass btClass) {
        switch (btClass.getDeviceClass()) {
            case BluetoothClass.Device.AUDIO_VIDEO_UNCATEGORIZED:
            case BluetoothClass.Device.AUDIO_VIDEO_WEARABLE_HEADSET:
            case BluetoothClass.Device.AUDIO_VIDEO_MICROPHONE:
            case BluetoothClass.Device.AUDIO_VIDEO_HEADPHONES:
                return R.drawable.ic_bt_le_audio;
            default:
                return R.drawable.ic_bt_le_audio_speakers;
        }
    }

    public int getAudioLocation(BluetoothDevice device) {