1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-12-05 20:51:07 +01:00

getInstanceFor() for ChatManager and AccountManager

This commit is contained in:
Florian Schmaus 2014-03-17 20:46:08 +01:00
parent 6197f6200f
commit 4db967079f
9 changed files with 97 additions and 102 deletions

View file

@ -153,8 +153,7 @@ public class BOSHPacketReader implements BOSHClientResponseListener {
// The server supports sessions
connection.getSASLAuthentication().sessionsSupported();
} else if (parser.getName().equals("register")) {
connection.getAccountManager().setSupportsAccountCreation(
true);
AccountManager.getInstance(connection).setSupportsAccountCreation(true);
}
} else if (eventType == XmlPullParser.END_TAG) {
if (parser.getName().equals("features")) {