diff options
author | Christian Schneppe <christian@pix-art.de> | 2018-11-23 12:48:22 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2018-11-23 12:48:22 +0100 |
commit | 0028bd6e8e18bf9a80aac0b05710c00898febfe7 (patch) | |
tree | 8666d53843041fe952b25f4d2a7555d317462bac /src/main/java/de/pixart/messenger | |
parent | 0a3d6bc6d002c3daa20140cdbe4c285cda37fd98 (diff) |
added count down latch to await account connect before going into publish profile activity
Diffstat (limited to 'src/main/java/de/pixart/messenger')
-rw-r--r-- | src/main/java/de/pixart/messenger/services/XmppConnectionService.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java index 174785fb8..bb443c375 100644 --- a/src/main/java/de/pixart/messenger/services/XmppConnectionService.java +++ b/src/main/java/de/pixart/messenger/services/XmppConnectionService.java @@ -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())) { |