# HG changeset patch # User Nikita Kozlov # Date 1279885915 -7200 # Node ID a94a68d961cc238a40a71d657c683f603613158d # Parent 8b5ec2a51272ae6ef8ddcd4bb39aeb1eb1d82a11 reindent of chatlist.jaba diff -r 8b5ec2a51272 -r a94a68d961cc 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 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 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); } + } }