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

Commit d68c529b authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Fix BT Profile Binder Proxies Leak when BT is OFF" am: 94ff0246 am: 76e3695f

parents abbe6089 76e3695f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -3600,7 +3600,10 @@ 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;