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

Commit 7ddcac5b authored by Charlie Boutier's avatar Charlie Boutier Committed by Automerger Merge Worker
Browse files

Merge "PandoraServer: Handle reject pairing on onPairing" am: 987b2ff9

parents 4d2a1c39 987b2ff9
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())