Loading android/pandora/server/src/com/android/pandora/Security.kt +1 −1 Original line number Diff line number Diff line Loading @@ -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()) Loading Loading
android/pandora/server/src/com/android/pandora/Security.kt +1 −1 Original line number Diff line number Diff line Loading @@ -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()) Loading