diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2015-05-15 13:58:11 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2015-05-15 13:58:11 +0200 |
commit | b6a7e56bf667cfc0845ca0d50d88a77c43d9a27d (patch) | |
tree | 0c6b67300d334f50c25610363a5d9d0d59d2d95f /src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java | |
parent | b69ee7125d49493bea86c6e3095f1236ad895980 (diff) |
call StartConversationActivity in init mode only after adding the first account
Diffstat (limited to '')
-rw-r--r-- | src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java b/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java index 7aa7b1c2..931a1a2f 100644 --- a/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/EditAccountActivity.java @@ -223,7 +223,9 @@ public class EditAccountActivity extends XmppActivity implements OnAccountUpdate if (avatar != null) { intent = new Intent(getApplicationContext(), StartConversationActivity.class); - intent.putExtra("init",true); + if (xmppConnectionService != null && xmppConnectionService.getAccounts().size() == 1) { + intent.putExtra("init", true); + } } else { intent = new Intent(getApplicationContext(), PublishProfilePictureActivity.class); |