Hi,

I am testing with the example that is in github, I changed the add method 
and I cannot detect the cancellation.

Code:
        addItem.addActionListener(evt -> {
            if (!Fingerprint.isAvailable()) {
                ToastBar.showErrorMessage("Fingerprint not avaiable on this 
platform");
                return;
            }
            AsyncResource<Boolean> r = Fingerprint.addPassword("Adding 
secure item to keystore", keyName.getText(), keyValue.getText());
            if (r.isCancelled()) {
                Dialog.show("Error", "Cancelled process", "Continuar", 
null);
            }
        });

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/7c7a616e-6f50-456f-9b17-6eae2357072en%40googlegroups.com.

Reply via email to