added count down latch to await account connect before going into publish profile activity

This commit is contained in:
Christian Schneppe 2018-11-23 12:48:22 +01:00
parent 0a3d6bc6d0
commit 0028bd6e8e

View file

@ -338,6 +338,9 @@ public class XmppConnectionService extends Service {
public void onStatusChanged(final Account account) {
XmppConnection connection = account.getXmppConnection();
updateAccountUi();
if (account.getStatus() == Account.State.ONLINE || account.getStatus().isError()) {
mQuickConversationsService.signalAccountStateChange();
}
if (account.getStatus() == Account.State.ONLINE) {
synchronized (mLowPingTimeoutMode) {
if (mLowPingTimeoutMode.remove(account.getJid().asBareJid())) {