Project

General

Profile

« Previous | Next » 

Revision 583bfecc

Added by Neels Hofmeyr about 4 years ago

eliminate itemCount param from showMenu()

View differences:

sim-applet/src/org/osmocom/IMSIPseudo/IMSIPseudo.java
58 58
			byte selectedItemId = envHdlr.getItemIdentifier();
59 59

  
60 60
			if (selectedItemId == STKServicesMenuId) {
61
				showMenu(itemListMain, (byte)4);
61
				showMenu(itemListMain);
62 62
				handleMenuResponseMain();
63 63
			}
64 64
		}
......
69 69
		}
70 70
	}
71 71

  
72
	private void showMenu(Object[] itemList, byte itemCount) {
72
	private void showMenu(Object[] itemList) {
73 73
		ProactiveHandler proHdlr = ProactiveHandler.getTheHandler();
74 74
		proHdlr.init((byte) PRO_CMD_SELECT_ITEM,(byte)0,DEV_ID_ME);
75 75

  
76
		for (byte i=(byte)0;i<itemCount;i++) {
76
		for (byte i=(byte)0; i < itemList.length; i++) {
77 77
			if (i == 0) {
78 78
				/* Title */
79 79
				proHdlr.appendTLV((byte)(TAG_ALPHA_IDENTIFIER | TAG_SET_CR), (byte[])itemList[i],
......
173 173
			showIMSI();
174 174
			break;
175 175
		case 3: /* Change IMSI */
176
			showMenu(itemListChangeIMSI, (byte)4);
176
			showMenu(itemListChangeIMSI);
177 177
			handleMenuResponseChangeIMSI();
178 178
			break;
179 179
		}

Also available in: Unified diff

Add picture from clipboard (Maximum size: 48.8 MB)