# HG changeset patch # User Jean-Manuel Da Silva # Date 1258140787 -3600 # Node ID 296f08e23545c1ffdd014ea913a9e3e300b276dc # Parent 661211543507a1a69a026b9b9a04eb4a2f6689ea Renommage de certaines methodes diff -r 661211543507 -r 296f08e23545 src/com/beem/project/beem/ui/Chat.java --- a/src/com/beem/project/beem/ui/Chat.java Fri Nov 13 19:18:38 2009 +0100 +++ b/src/com/beem/project/beem/ui/Chat.java Fri Nov 13 20:33:07 2009 +0100 @@ -248,9 +248,9 @@ final List openedChats = mChatManager.getOpenedChatList(); if (openedChats.size() > 0) - createChangeChatDialog(openedChats); + createChatSwitcherDialog(openedChats); else - createNoMoreChatsDialog(); + createNoActiveChatsDialog(); } catch (RemoteException e) { Log.e(TAG, e.getMessage()); } @@ -272,7 +272,7 @@ * Create the change chat dialog. * @param openedChats A list containing the JID of participants of the opened chats. */ - private void createChangeChatDialog(final List openedChats) { + private void createChatSwitcherDialog(final List openedChats) { CharSequence[] items = new CharSequence[openedChats.size()]; int i = 0; @@ -293,15 +293,15 @@ Chat.this.onNewIntent(chatIntent); } }); - AlertDialog changeChatDialog = builder.create(); - changeChatDialog.show(); + AlertDialog chatSwitcherDialog = builder.create(); + chatSwitcherDialog.show(); } - private void createNoMoreChatsDialog() { + private void createNoActiveChatsDialog() { AlertDialog.Builder builder = new AlertDialog.Builder(this); builder.setMessage(getString(R.string.chat_no_more_chats)); - AlertDialog noMoreChatsDialog = builder.create(); - noMoreChatsDialog.show(); + AlertDialog noActiveChatsDialog = builder.create(); + noActiveChatsDialog.show(); } /**