()
| 152 | } |
| 153 | |
| 154 | public String menuCommand() { |
| 155 | int size = menuCommands.size(); |
| 156 | if (cf.swapMenu) { |
| 157 | if (size == 2) { |
| 158 | MenuCommand commandScreen = findCommand(MenuCommand.SCREEN); |
| 159 | return commandScreen == null ? SR.MS_CANCEL : commandScreen.name; |
| 160 | } else if (size > 1) { |
| 161 | return SR.MS_MENU; |
| 162 | } else { |
| 163 | return ""; |
| 164 | } |
| 165 | } else { |
| 166 | if (size > 1) { |
| 167 | return SR.MS_MENU; |
| 168 | } else { |
| 169 | MenuCommand commandOk = findCommand(MenuCommand.OK); |
| 170 | return commandOk == null ? SR.MS_OK : commandOk.name; |
| 171 | } |
| 172 | } |
| 173 | } |
| 174 | |
| 175 | public void menuPressed() { |
| 176 | if (menuCommand().equals(SR.MS_MENU)) { |
no test coverage detected