From 4cddf31ad29eae68c467b9bde918fb4be07a38a9 Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Tue, 28 Feb 2017 11:48:28 +0100 Subject: [PATCH] properly handle onNewIntent() in StartConversations activity * fixes a glitch a caused xmpp uris not to open when activiy was already started --- .../conversations/ui/StartConversationActivity.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java b/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java index 76fd5e9df..50cf535ea 100644 --- a/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java +++ b/src/main/java/eu/siacs/conversations/ui/StartConversationActivity.java @@ -299,6 +299,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);