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

Commit fd7224b4 authored by Jack He's avatar Jack He Committed by Android (Google) Code Review
Browse files

Merge "Add BluetoothLeAudio to BluetoothAdapter#getProfileProxy and...

Merge "Add BluetoothLeAudio to BluetoothAdapter#getProfileProxy and BluetoothAdapter#closeProfileProxy" into sc-v2-dev-plus-aosp
parents 30fa2081 674dc07a
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();