Cancel when no card captured.
@@ -94,8 +94,12 @@ public class GetCardsAndPINStatusAction extends AbstractPINAction {
boolean success = cardCapturer.updateCardState();
- if (!SysUtils.isMobileDevice() && !success) {
+ if (!success) {
// User cancelled card insertion.
+ LOG.debug("User cancelled card insertion");
+ if (SysUtils.isMobileDevice()) {
+ throw new AppExtensionException(ECardConstants.Minor.IFD.CANCELLATION_BY_USER, "PIN Management was cancelled.");
+ }
return;
}
