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

Commit 5c613a2e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

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

Merge "Add BluetoothLeAudio to BluetoothAdapter#getProfileProxy and BluetoothAdapter#closeProfileProxy" into sc-dev am: 6041a06620

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15080834

Change-Id: I970020ea86de60ec4a22d19586d84b9a7e923c07
parents 5039423b fe3d6da4
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();
        }
    }