properly handle onNewIntent() in StartConversations activity

* fixes a glitch a caused xmpp uris not to open when activiy was already started
This commit is contained in:
Daniel Gultsch 2017-02-28 11:48:28 +01:00
parent 1f4c5ff97c
commit 4cddf31ad2
1 changed files with 9 additions and 0 deletions

View File

@ -299,6 +299,15 @@ public class StartConversationActivity extends XmppActivity implements OnRosterU
super.onStop(); super.onStop();
} }
@Override
public void onNewIntent(Intent intent) {
if (xmppConnectionServiceBound) {
handleIntent(intent);
} else {
setIntent(intent);
}
}
protected void openConversationForContact(int position) { protected void openConversationForContact(int position) {
Contact contact = (Contact) contacts.get(position); Contact contact = (Contact) contacts.get(position);
openConversationForContact(contact); openConversationForContact(contact);