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

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

Merge "cancel device discovery before start pairing process" into klp-dev

parents 240e2c5c 9ecfc6cf
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);