()
| 294 | } |
| 295 | |
| 296 | public void destroyView() { |
| 297 | if (newaccount && doConnect) { |
| 298 | new AlertBox(SR.MS_CONNECT_TO, item.account.JID.getBare() + "?") { |
| 299 | |
| 300 | public void yes() { |
| 301 | SplashScreen.getInstance().setExit(sd.roster); |
| 302 | startLogin(true); |
| 303 | } |
| 304 | |
| 305 | public void no() { |
| 306 | startLogin(false); |
| 307 | accountSelect.show(); |
| 308 | } |
| 309 | }; |
| 310 | } else { |
| 311 | super.destroyView(); |
| 312 | } |
| 313 | } |
| 314 | |
| 315 | private void startLogin(boolean login) { |
| 316 | Config.getInstance().accountIndex = accountSelect.itemsList.size() - 1; |
no test coverage detected