# HG changeset patch # User "Vincent Veronis" # Date 1315238509 -7200 # Node ID 970559c45e43d8406c16168cee427b6370098c16 # Parent 6e5999172eb12b87d8d478b23b3f3906238521b7 Set up blue led on incoming message notification feature #319 diff -r 6e5999172eb1 -r 970559c45e43 src/com/beem/project/beem/BeemService.java --- a/src/com/beem/project/beem/BeemService.java Thu Aug 25 14:51:07 2011 +0200 +++ b/src/com/beem/project/beem/BeemService.java Mon Sep 05 18:01:49 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 6e5999172eb1 -r 970559c45e43 src/com/beem/project/beem/service/BeemChatManager.java --- a/src/com/beem/project/beem/service/BeemChatManager.java Thu Aug 25 14:51:07 2011 +0200 +++ b/src/com/beem/project/beem/service/BeemChatManager.java Mon Sep 05 18:01:49 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) {