Modification de la notification lors de la reception d'un message
Remplacement du JID par l'alias dans le cas ou c'est possible.
--- 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;