IMSIPseudo.java: rename showHello to showMsg

Add msg as parameter.
This commit is contained in:
Oliver Smith 2020-02-24 08:25:43 +01:00
parent 2dcbfabb2d
commit 234ab54bf7
1 changed files with 4 additions and 5 deletions

View File

@ -55,20 +55,19 @@ public class IMSIPseudo extends Applet implements ToolkitInterface, ToolkitConst
byte selectedItemId = envHdlr.getItemIdentifier();
if (selectedItemId == helloMenuItem) {
showHello();
showMsg(LUCounter);
}
}
if (event == EVENT_EVENT_DOWNLOAD_LOCATION_STATUS) {
LUCounter[0]++;
showHello();
showMsg(LUCounter);
}
}
private void showHello() {
private void showMsg(byte[] msg) {
ProactiveHandler proHdlr = ProactiveHandler.getTheHandler();
proHdlr.initDisplayText((byte)0, DCS_8_BIT_DATA, LUCounter, (short)0,
(short)(LUCounter.length));
proHdlr.initDisplayText((byte)0, DCS_8_BIT_DATA, msg, (short)0, (short)(msg.length));
proHdlr.send();
return;
}