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

Commit 03d4cec1 authored by William Escande's avatar William Escande Committed by Automerger Merge Worker
Browse files

Merge "Revert "Fix BT Profile Binder Proxies Leak when BT is OFF"" am:...

Merge "Revert "Fix BT Profile Binder Proxies Leak  when BT is OFF"" am: b67483ed am: 20830876 am: ef9d1998 am: a625bd7c

Original change: https://android-review.googlesource.com/c/platform/packages/modules/Bluetooth/+/2103966



Change-Id: Ia184b11cc59221a0388849faf53d38f70d0ff0d8
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents e599981a a625bd7c
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -3600,10 +3600,7 @@ public final class BluetoothAdapter {
        if (context == null || listener == null) {
            return false;
        }
        // Do not create proxies when BT is OFF
        if (getState() != STATE_ON) {
            return false;
        }

        if (profile == BluetoothProfile.HEADSET) {
            BluetoothHeadset headset = new BluetoothHeadset(context, listener, this);
            return true;