Modification de la notification lors de la reception d'un message
authorJean-Manuel Da Silva <dasilvj@gmail.com>
Fri, 13 Nov 2009 19:18:38 +0100
changeset 511 661211543507
parent 510 40b6fc1be0ef
child 512 296f08e23545
Modification de la notification lors de la reception d'un message Remplacement du JID par l'alias dans le cas ou c'est possible.
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;