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

Commit 4fe5ecd6 authored by Charlie Boutier's avatar Charlie Boutier
Browse files

PandoraServer: Handle reject pairing on onPairing

Bug: 279550987
Test: atest pts-bot
Change-Id: I39f0e5a3cb7c4b0faec0a09d2c2952ea0293687f
parent 7911003f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -234,7 +234,7 @@ class Security(private val context: Context) : SecurityImplBase(), Closeable {
          )
          val device = answer.event.address.toBluetoothDevice(bluetoothAdapter)
          when (answer.answerCase!!) {
            PairingEventAnswer.AnswerCase.CONFIRM -> device.setPairingConfirmation(true)
            PairingEventAnswer.AnswerCase.CONFIRM -> device.setPairingConfirmation(answer.confirm)
            PairingEventAnswer.AnswerCase.PASSKEY ->
              device.setPin(answer.passkey.toString().padStart(6, '0'))
            PairingEventAnswer.AnswerCase.PIN -> device.setPin(answer.pin.toByteArray())