src/com/beem/project/beem/ui/ContactList.java
changeset 208 6be326cfb621
parent 207 dbc0c467c3e6
child 209 f5b9da8365f5
--- a/src/com/beem/project/beem/ui/ContactList.java	Fri May 22 16:45:49 2009 +0200
+++ b/src/com/beem/project/beem/ui/ContactList.java	Fri May 22 16:55:36 2009 +0200
@@ -7,10 +7,8 @@
 
 import org.jivesoftware.smack.util.StringUtils;
 
-import android.app.AlertDialog;
-import android.app.Dialog;
+
 import android.app.ExpandableListActivity;
-import android.content.DialogInterface;
 import android.content.Intent;
 import android.content.SharedPreferences;
 import android.database.DataSetObserver;
@@ -31,7 +29,6 @@
 import android.widget.ExpandableListAdapter;
 import android.widget.ImageView;
 import android.widget.TextView;
-import android.widget.Toast;
 
 import com.beem.project.beem.BeemApplication;
 import com.beem.project.beem.R;
@@ -472,7 +469,7 @@
 		    } else {
 			boolean found = false;
 			for (Contact tempContact:groupMap.get(group)) {
-			    if (tempContact.getJID() == str) {
+			    if (tempContact.getJID().equals(str)) {
 				curContact = tempContact;
 				found = true;
 				break ;