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:
		
							parent
							
								
									1f4c5ff97c
								
							
						
					
					
						commit
						4cddf31ad2
					
				| @ -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); | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Daniel Gultsch
						Daniel Gultsch