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

Commit db44b20f authored by Priti Aghera's avatar Priti Aghera Committed by Android (Google) Code Review
Browse files

Added support to cancel pairing from UI while doing SSP.


The new code sends SSPReply with one of the arguments as false.
Signed-off-by: default avatarPriti Aghera <paghera@broadcom.com>
parent 14b330d3
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -885,11 +885,9 @@ public final class BluetoothDevice implements Parcelable {

    /** @hide */
    public boolean cancelPairingUserInput() {
        // TODO(BT)
        /*
        try {
            return sService.cancelPairingUserInput(this);
        } catch (RemoteException e) {Log.e(TAG, "", e);}*/
            return sService.setPairingConfirmation(this, false);
        } catch (RemoteException e) {Log.e(TAG, "", e);}
        return false;
    }