aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/java/de/pixart
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-11-23 12:48:22 +0100
committerChristian Schneppe <christian@pix-art.de>2018-11-23 12:48:22 +0100
commit0028bd6e8e18bf9a80aac0b05710c00898febfe7 (patch)
tree8666d53843041fe952b25f4d2a7555d317462bac /src/main/java/de/pixart
parent0a3d6bc6d002c3daa20140cdbe4c285cda37fd98 (diff)
added count down latch to await account connect before going into publish profile activity
Diffstat (limited to 'src/main/java/de/pixart')
-rw-r--r--src/main/java/de/pixart/messenger/services/XmppConnectionService.java3
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())) {