(boolean launch, int accountIndex)
| 1300 | } |
| 1301 | |
| 1302 | public void loadAccount(boolean launch, int accountIndex) { |
| 1303 | Account a = sd.account = AccountStorage.createFromStorage(accountIndex); |
| 1304 | if (a != null) { |
| 1305 | if (launch) { |
| 1306 | logoff(null); |
| 1307 | resetRoster(); |
| 1308 | int loginstatus = Config.getInstance().loginstatus; |
| 1309 | if (loginstatus >= Presence.PRESENCE_OFFLINE) { |
| 1310 | sendPresence(Presence.PRESENCE_INVISIBLE, null); |
| 1311 | } else { |
| 1312 | sendPresence(loginstatus, null); |
| 1313 | } |
| 1314 | } |
| 1315 | } |
| 1316 | } |
| 1317 | |
| 1318 | public void bindResource(String myJid) { |
| 1319 | Contact self = selfContact(); |
no test coverage detected