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

Commit 7699c18a authored by Matthew Xie's avatar Matthew Xie Committed by Android (Google) Code Review
Browse files

Merge "when disconnectHeadsetInternal, allow it when the BT is not disabled"

parents 3a8801e0 e3dc975a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -661,7 +661,7 @@ public final class BluetoothHeadset implements BluetoothProfile {
     */
    public boolean disconnectHeadsetInternal(BluetoothDevice device) {
        if (DBG) log("disconnectHeadsetInternal");
        if (mService != null && isEnabled()) {
        if (mService != null && !isDisabled()) {
            try {
                 return mService.disconnectHeadsetInternal(device);
            } catch (RemoteException e) {Log.e(TAG, e.toString());}