MCPcopy Index your code
hub / github.com/BombusMod/BombusMod / loadAccount

Method loadAccount

src/main/java/Client/Roster.java:1302–1316  ·  view source on GitHub ↗
(boolean launch, int accountIndex)

Source from the content-addressed store, hash-verified

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();

Callers 4

destroyViewMethod · 0.80
switchAccountMethod · 0.80
startLoginMethod · 0.80
startAppMethod · 0.80

Calls 5

createFromStorageMethod · 0.95
logoffMethod · 0.95
resetRosterMethod · 0.95
getInstanceMethod · 0.95
sendPresenceMethod · 0.95

Tested by

no test coverage detected