# HG changeset patch # User Marseille # Date 1264038726 -3600 # Node ID 49e83a4b67b9f4af70a02e0b736bb955325e5555 # Parent 115665c0d25af557e1a1cc7edc537a67510894ae# Parent 335e1eb21ceca952e82d05cfbbcd0e69ed9b5ed4 Merge with 335e1eb21ceca952e82d05cfbbcd0e69ed9b5ed4 diff -r 115665c0d25a -r 49e83a4b67b9 src/com/beem/project/beem/ui/Chat.java --- 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();