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

Commit b67483ed authored by William Escande's avatar William Escande Committed by Gerrit Code Review
Browse files

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

parents 82264267 b4847718
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -3601,10 +3601,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;