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

Commit 52efc1f6 authored by David Duarte's avatar David Duarte Committed by Automerger Merge Worker
Browse files

Merge "Pandora: Add start padding on the passkey" am: f30a59de

parents c4ab17b9 f30a59de
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -235,7 +235,7 @@ class Security(private val context: Context) : SecurityImplBase(), Closeable {
          when (answer.answerCase!!) {
            PairingEventAnswer.AnswerCase.CONFIRM -> device.setPairingConfirmation(true)
            PairingEventAnswer.AnswerCase.PASSKEY ->
              device.setPin(answer.passkey.toString().toByteArray())
              device.setPin(answer.passkey.toString().padStart(6, '0'))
            PairingEventAnswer.AnswerCase.PIN -> device.setPin(answer.pin.toByteArray())
            PairingEventAnswer.AnswerCase.ANSWER_NOT_SET -> error("unexpected pairing answer type")
          }