Skip to content

Commit

Permalink
Merge pull request #512 from NordicSemiconductor/bugfix/allow-provisi…
Browse files Browse the repository at this point in the history
…oning-with-non-oob-public-key

Fix incompatibility nodes that does not support oob public key.
  • Loading branch information
roshanrajaratnam authored May 26, 2022
2 parents 5312a6c + acb08fc commit bd593ee
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,14 @@ protected void onCreate(final Bundle savedInstanceState) {
if (node.getProvisioningCapabilities() != null) {
if (node.getProvisioningCapabilities().isPublicKeyOobSupported()) {
DialogFragmentOobPublicKey.newInstance().show(getSupportFragmentManager(), null);
} else {
if (node.getProvisioningCapabilities().getAvailableOOBTypes().size() == 1 &&
node.getProvisioningCapabilities().getAvailableOOBTypes().get(0) == AuthenticationOOBMethods.NO_OOB_AUTHENTICATION) {
onNoOOBSelected();
} else {
final DialogFragmentSelectOOBType fragmentSelectOOBType = DialogFragmentSelectOOBType.newInstance(node.getProvisioningCapabilities());
fragmentSelectOOBType.show(getSupportFragmentManager(), null);
}
}
}
});
Expand Down

0 comments on commit bd593ee

Please sign in to comment.