use of com.xabber.android.data.connection.ConnectionThread in project xabber-android by redsolution.
the class RosterManager method getRoster.
@Nullable
private Roster getRoster(String account) {
final AccountItem accountItem = AccountManager.getInstance().getAccount(account);
if (accountItem == null) {
return null;
}
final ConnectionThread connectionThread = accountItem.getConnectionThread();
if (connectionThread == null) {
return null;
}
final AbstractXMPPConnection xmppConnection = connectionThread.getXMPPConnection();
if (xmppConnection == null) {
return null;
}
return Roster.getInstanceFor(xmppConnection);
}
Aggregations