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

Commit a8d3435c authored by Rahul Sabnis's avatar Rahul Sabnis
Browse files

Add BluetoothLeAudio to BluetoothAdapter#getProfileProxy and

BluetoothAdapter#closeProfileProxy

Tag: #feature
Bug: 15083918
Test: Manual
Merged-In: Ia46dc4e50d42dbd574588b531045cb680aa09d94
Change-Id: Ia46dc4e50d42dbd574588b531045cb680aa09d94
parent a7ff24bf
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -3054,6 +3054,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 {
            return false;
        }
@@ -3142,6 +3145,10 @@ public final class BluetoothAdapter {
            case BluetoothProfile.HEARING_AID:
                BluetoothHearingAid hearingAid = (BluetoothHearingAid) proxy;
                hearingAid.close();
                break;
            case BluetoothProfile.LE_AUDIO:
                BluetoothLeAudio leAudio = (BluetoothLeAudio) proxy;
                leAudio.close();
        }
    }