add showMsgAndWaitKey() to keep decoded IMSI on display

This commit is contained in:
Neels Hofmeyr 2020-02-24 19:00:03 +01:00
parent b7a20e3bfc
commit cfb476d207
1 changed files with 8 additions and 1 deletions

View File

@ -92,6 +92,12 @@ public class IMSIPseudo extends Applet implements ToolkitInterface, ToolkitConst
proHdlr.send();
}
private void showMsgAndWaitKey(byte[] msg) {
ProactiveHandler proHdlr = ProactiveHandler.getTheHandler();
proHdlr.initGetInkey((byte)0, DCS_8_BIT_DATA, msg, (short)0, (short)(msg.length));
proHdlr.send();
}
private void showError(short code) {
byte[] msg = new byte[] {'E', '?', '?'};
msg[1] = (byte)('0' + code / 10);
@ -206,7 +212,8 @@ public class IMSIPseudo extends Applet implements ToolkitInterface, ToolkitConst
}
mi2str(msg, (byte)14, (byte)16, IMSI, false);
showMsg(msg);
showMsgAndWaitKey(msg);
}
private void handleMenuResponseMain() {