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

Commit 2a7de26f authored by Matthew Xie's avatar Matthew Xie Committed by Android Git Automerger
Browse files

am 46408a7d: Merge "cancel device discovery before start pairing process" into klp-dev

* commit '46408a7d':
  cancel device discovery before start pairing process
parents ca742852 46408a7d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1055,6 +1055,10 @@ public class AdapterService extends Service {
            return false;
        }

        // Pairing is unreliable while scanning, so cancel discovery
        // Note, remove this when native stack improves
        cancelDiscoveryNative();

        Message msg = mBondStateMachine.obtainMessage(BondStateMachine.CREATE_BOND);
        msg.obj = device;
        mBondStateMachine.sendMessage(msg);