diff options
author | Christian Schneppe <christian@pix-art.de> | 2017-03-04 17:02:30 +0100 |
---|---|---|
committer | Christian Schneppe <christian@pix-art.de> | 2017-03-04 17:02:30 +0100 |
commit | 789db8f038362efffb25eee8ae3cbb4791673430 (patch) | |
tree | fd5dc9b8c2cd5f5de6b5b6e38ec6ff0a8304b0b3 /src/main | |
parent | 1bf2f103533dd9e73fac49be0c486cae551eded7 (diff) |
properly handle onNewIntent() in StartConversations activity
* fixes a glitch a caused xmpp uris not to open when activiy was already
started
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/java/de/pixart/messenger/ui/StartConversationActivity.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java b/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java index d7e8af5c7..a4a9db761 100644 --- a/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java +++ b/src/main/java/de/pixart/messenger/ui/StartConversationActivity.java @@ -314,6 +314,15 @@ public class StartConversationActivity extends XmppActivity implements OnRosterU super.onStop(); } + @Override + public void onNewIntent(Intent intent) { + if (xmppConnectionServiceBound) { + handleIntent(intent); + } else { + setIntent(intent); + } + } + protected void openConversationForContact(int position) { Contact contact = (Contact) contacts.get(position); openConversationForContact(contact); |