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

Commit 674dc07a authored by Jack He's avatar Jack He
Browse files

Add BluetoothLeAudio to BluetoothAdapter#getProfileProxy and

BluetoothAdapter#closeProfileProxy

Tag: #feature
Bug: 15083918
Test: Manual
Change-Id: Ia46dc4e50d42dbd574588b531045cb680aa09d94
(cherry picked from commit 5a623c1a6d62578c6d0bce99925692e48101a1d4)
parent 43c98257
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3508,6 +3508,9 @@ public final class BluetoothAdapter {
                return true;
            }
            return false;
        } else if (profile == BluetoothProfile.LE_AUDIO) {
            BluetoothLeAudio leAudio = new BluetoothLeAudio(context, listener, this);
            return true;
        } else if (profile == BluetoothProfile.VOLUME_CONTROL) {
            BluetoothVolumeControl vcs = new BluetoothVolumeControl(context, listener, this);
            return true;
@@ -3611,6 +3614,10 @@ public final class BluetoothAdapter {
                BluetoothHearingAid hearingAid = (BluetoothHearingAid) proxy;
                hearingAid.close();
                break;
            case BluetoothProfile.LE_AUDIO:
                BluetoothLeAudio leAudio = (BluetoothLeAudio) proxy;
                leAudio.close();
                break;
            case BluetoothProfile.VOLUME_CONTROL:
                BluetoothVolumeControl vcs = (BluetoothVolumeControl) proxy;
                vcs.close();