From 26c134398422a4f4e703cdf7b87fb1cb08d542c4 Mon Sep 17 00:00:00 2001 From: Daniel Sandler Date: Thu, 4 Apr 2013 11:01:04 -0400 Subject: [PATCH] Set FLAG_SHOW_LIGHTS if *either* on or off is nonzero. Previously they each had to be nonzero, which prevented using the builder methods to create solid-on LED notifications. Change-Id: I30314ec33daa28ee2e1f0b87a184c3540254471c --- core/java/android/app/Notification.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index ebca04147d22a..a7543a83f1b26 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -1603,7 +1603,7 @@ public class Notification implements Parcelable n.defaults = mDefaults; n.flags = mFlags; n.bigContentView = makeBigContentView(); - if (mLedOnMs != 0 && mLedOffMs != 0) { + if (mLedOnMs != 0 || mLedOffMs != 0) { n.flags |= FLAG_SHOW_LIGHTS; } if ((mDefaults & DEFAULT_LIGHTS) != 0) {