OSDN Git Service

Use default values rather than hard coding green for LED notification color.
authorMike Lockwood <lockwood@android.com>
Wed, 20 Jan 2010 17:30:05 +0000 (12:30 -0500)
committerMike Lockwood <lockwood@android.com>
Wed, 20 Jan 2010 17:30:05 +0000 (12:30 -0500)
BUG: 2329568

Signed-off-by: Mike Lockwood <lockwood@android.com>
src/com/android/deskclock/AlarmReceiver.java

index 92f929a..5bb0e5a 100644 (file)
@@ -145,9 +145,7 @@ public class AlarmReceiver extends BroadcastReceiver {
                 pendingNotify);
         n.flags |= Notification.FLAG_SHOW_LIGHTS
                 | Notification.FLAG_ONGOING_EVENT;
-        n.ledARGB = 0xFF00FF00;
-        n.ledOnMS = 500;
-        n.ledOffMS = 500;
+        n.defaults |= Notification.DEFAULT_LIGHTS;
 
         // Send the notification using the alarm id to easily identify the
         // correct notification.