merge
author"Vincent Veronis"
Mon, 05 Sep 2011 18:10:16 +0200
changeset 926 b75998f79089
parent 925 970559c45e43 (diff)
parent 924 c82293948d2f (current diff)
child 927 bdaaf0226e93
merge
--- 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());
--- 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) {