# HG changeset patch # User "Vincent Veronis" # Date 1315239016 -7200 # Node ID b75998f7908988cd75cc6ad61e2881990248486d # Parent 970559c45e43d8406c16168cee427b6370098c16# Parent c82293948d2fbd7f2441f584114621c226d1464a merge diff -r c82293948d2f -r b75998f79089 src/com/beem/project/beem/BeemService.java --- a/src/com/beem/project/beem/BeemService.java Mon Sep 05 09:31:22 2011 +0200 +++ b/src/com/beem/project/beem/BeemService.java Mon Sep 05 18:10:16 2011 +0200 @@ -272,6 +272,9 @@ public void sendNotification(int id, Notification notif) { if (mSettings.getBoolean(BeemApplication.NOTIFICATION_VIBRATE_KEY, true)) notif.defaults |= Notification.DEFAULT_VIBRATE; + notif.ledARGB = 0xff0000ff; // Blue color + notif.ledOnMS = 1000; + notif.ledOffMS = 1000; notif.defaults |= Notification.DEFAULT_LIGHTS; String ringtoneStr = mSettings.getString(BeemApplication.NOTIFICATION_SOUND_KEY, Settings.System.DEFAULT_NOTIFICATION_URI.toString()); diff -r c82293948d2f -r b75998f79089 src/com/beem/project/beem/service/BeemChatManager.java --- a/src/com/beem/project/beem/service/BeemChatManager.java Mon Sep 05 09:31:22 2011 +0200 +++ b/src/com/beem/project/beem/service/BeemChatManager.java Mon Sep 05 18:10:16 2011 +0200 @@ -288,7 +288,7 @@ .getName(); Notification notification = new Notification(android.R.drawable.stat_notify_chat, tickerText, System .currentTimeMillis()); - notification.flags = Notification.FLAG_AUTO_CANCEL; + notification.flags = Notification.FLAG_AUTO_CANCEL | Notification.FLAG_SHOW_LIGHTS; notification.setLatestEventInfo(mService, tickerText, msgBody, makeChatIntent(chat)); mService.sendNotification(chat.getParticipant().getJID().hashCode(), notification); } catch (RemoteException e) {