# HG changeset patch # User Jean-Manuel Da Silva # Date 1258136318 -3600 # Node ID 661211543507a1a69a026b9b9a04eb4a2f6689ea # Parent 40b6fc1be0ef5be893b4ba8ae50bac30be95b809 Modification de la notification lors de la reception d'un message Remplacement du JID par l'alias dans le cas ou c'est possible. diff -r 40b6fc1be0ef -r 661211543507 src/com/beem/project/beem/service/BeemChatManager.java --- a/src/com/beem/project/beem/service/BeemChatManager.java Fri Nov 13 03:26:42 2009 +0100 +++ b/src/com/beem/project/beem/service/BeemChatManager.java Fri Nov 13 19:18:38 2009 +0100 @@ -93,7 +93,7 @@ */ private void notifyNewChat(IChat chat) { try { - CharSequence tickerText = chat.getParticipant().getName(); + CharSequence tickerText = mService.getBind().getRoster().getContact(chat.getParticipant().getJID()).getName(); Notification notification = new Notification(android.R.drawable.stat_notify_chat, tickerText, System .currentTimeMillis()); notification.defaults = Notification.DEFAULT_ALL;