reindent of chatlist.jaba
authorNikita Kozlov <nikita@mbdsys.com>
Fri, 23 Jul 2010 13:51:55 +0200
changeset 791 a94a68d961cc
parent 790 8b5ec2a51272
child 792 310796265f15
reindent of chatlist.jaba
src/com/beem/project/beem/ui/dialogs/builders/ChatList.java
--- a/src/com/beem/project/beem/ui/dialogs/builders/ChatList.java	Fri Jul 23 13:48:06 2010 +0200
+++ b/src/com/beem/project/beem/ui/dialogs/builders/ChatList.java	Fri Jul 23 13:51:55 2010 +0200
@@ -58,33 +58,33 @@
  */
 public class ChatList extends AlertDialog.Builder {
 
-	//private static final String TAG = "Dialogs.Builders > Chat list";
+    //private static final String TAG = "Dialogs.Builders > Chat list";
 
-	/**
-	 * Constructor.
-	 * @param context context activity.
-	 * @param openedChats A list containing the JID of participants of the opened chats.
-	 */
-	public ChatList(final Context context, final List<Contact> openedChats) {
-		super(context);
+    /**
+     * Constructor.
+     * @param context context activity.
+     * @param openedChats A list containing the JID of participants of the opened chats.
+     */
+    public ChatList(final Context context, final List<Contact> openedChats) {
+	super(context);
 
-		if (openedChats.size() > 0) {
-			CharSequence[] items = new CharSequence[openedChats.size()];
+	if (openedChats.size() > 0) {
+	    CharSequence[] items = new CharSequence[openedChats.size()];
 
-			int i = 0;
-			for (Contact c : openedChats) {
-				items[i++] = c.getName();
-			}
-			setTitle(R.string.chat_dialog_change_chat_title);
-			setItems(items, new DialogInterface.OnClickListener() {
-				public void onClick(DialogInterface dialog, int item) {
-					Intent chatIntent = new Intent(context, com.beem.project.beem.ui.Chat.class);
-					chatIntent.setData((openedChats.get(item)).toUri());
-					context.startActivity(chatIntent);
-				}
-			});
-		} else {
-			setMessage(R.string.chat_no_more_chats);
+	    int i = 0;
+	    for (Contact c : openedChats) {
+		items[i++] = c.getName();
+	    }
+	    setTitle(R.string.chat_dialog_change_chat_title);
+	    setItems(items, new DialogInterface.OnClickListener() {
+		public void onClick(DialogInterface dialog, int item) {
+		    Intent chatIntent = new Intent(context, com.beem.project.beem.ui.Chat.class);
+		    chatIntent.setData((openedChats.get(item)).toUri());
+		    context.startActivity(chatIntent);
 		}
+	    });
+	} else {
+	    setMessage(R.string.chat_no_more_chats);
 	}
+    }
 }