diff options
author | Michael <betheg@bitcloner.org> | 2014-10-04 18:32:05 +0200 |
---|---|---|
committer | Michael <betheg@bitcloner.org> | 2014-10-04 18:32:05 +0200 |
commit | 5250ef536fe3f5abffd87fe25981aa0bcd85115b (patch) | |
tree | 9297e8513f560fe44034eb272c410f81e2fc010e /src/eu | |
parent | 5371dd025a3c3b341c061d59f3c3d66cb07c0a2c (diff) |
fixed an 'activity has leaked window'
Diffstat (limited to 'src/eu')
-rw-r--r-- | src/eu/siacs/conversations/ui/StartConversationActivity.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/eu/siacs/conversations/ui/StartConversationActivity.java b/src/eu/siacs/conversations/ui/StartConversationActivity.java index 1a5fba95..830bf252 100644 --- a/src/eu/siacs/conversations/ui/StartConversationActivity.java +++ b/src/eu/siacs/conversations/ui/StartConversationActivity.java @@ -359,8 +359,8 @@ public class StartConversationActivity extends XmppActivity { jid.setError(getString(R.string.contact_already_exists)); } else { xmppConnectionService.createContact(contact); - switchToConversation(contact); dialog.dismiss(); + switchToConversation(contact); } } else { jid.setError(getString(R.string.invalid_jid)); @@ -421,6 +421,7 @@ public class StartConversationActivity extends XmppActivity { xmppConnectionService .joinMuc(conversation); } + dialog.dismiss(); switchToConversation(conversation); } } else { @@ -430,6 +431,7 @@ public class StartConversationActivity extends XmppActivity { if (!conversation.getMucOptions().online()) { xmppConnectionService.joinMuc(conversation); } + dialog.dismiss(); switchToConversation(conversation); } } else { |