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

Commit f30a59de authored by David Duarte's avatar David Duarte Committed by Gerrit Code Review
Browse files

Merge "Pandora: Add start padding on the passkey"

parents c714742a b390e65b
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")
          }