Merge with 335e1eb21ceca952e82d05cfbbcd0e69ed9b5ed4
authorMarseille
Thu, 21 Jan 2010 02:52:06 +0100
changeset 646 49e83a4b67b9
parent 645 115665c0d25a (current diff)
parent 643 335e1eb21cec (diff)
child 648 6dd33a633ddc
Merge with 335e1eb21ceca952e82d05cfbbcd0e69ed9b5ed4
--- a/src/com/beem/project/beem/ui/Chat.java	Thu Jan 21 01:46:57 2010 +0100
+++ b/src/com/beem/project/beem/ui/Chat.java	Thu Jan 21 02:52:06 2010 +0100
@@ -299,7 +299,7 @@
 	    public void onClick(DialogInterface dialog, int item) {
 		Intent chatIntent = new Intent(getApplicationContext(), com.beem.project.beem.ui.Chat.class);
 		chatIntent.setData((openedChats.get(item)).toUri());
-		Chat.this.onNewIntent(chatIntent);
+		startActivity(chatIntent);
 	    }
 	});
 	AlertDialog chatSwitcherDialog = builder.create();
@@ -330,9 +330,9 @@
 	mChat.setOpen(true);
 	mChatManager.deleteChatNotification(mChat);
 
-	// TODO thecontact isnotnecesarrely ubn the roseter.
-	// this can leadtoa null exception
 	mContact = mRoster.getContact(contact.getJID());
+	if (mContact == null)
+	    mContact = contact;
 	updateContactInformations();
 	updateContactStatusIcon();