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

Commit 72431cb4 authored by Nitin Arora's avatar Nitin Arora Committed by Android Git Automerger
Browse files

am 4ce780c2: Cancel inquiry during the transition from Bluetooth off to LE on state

* commit '4ce780c2':
  Cancel inquiry during the transition from Bluetooth off to LE on state
parents 30d4877c 4ce780c2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -643,6 +643,8 @@ class AdapterProperties {
        debugLog("onBluetoothDisable()");
        mBluetoothDisabling = true;
        if (getState() == BluetoothAdapter.STATE_TURNING_OFF) {
            // Turn off any Device Search/Inquiry
            mService.cancelDiscovery();
            setScanMode(AbstractionLayer.BT_SCAN_MODE_NONE);
        }
    }