summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Sandler <dsandler@android.com>2013-04-04 11:01:04 -0400
committerAndroid (Google) Code Review <android-gerrit@google.com>2013-04-08 14:44:28 +0000
commit26c134398422a4f4e703cdf7b87fb1cb08d542c4 (patch)
tree3cd5e2f164c4090af02d09703e29b61e41aa6223
parent0e78de6c0fadd70277eb29f56ccce97c1dffc4f2 (diff)
downloadframeworks_base-26c134398422a4f4e703cdf7b87fb1cb08d542c4.zip
frameworks_base-26c134398422a4f4e703cdf7b87fb1cb08d542c4.tar.gz
frameworks_base-26c134398422a4f4e703cdf7b87fb1cb08d542c4.tar.bz2
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
-rw-r--r--core/java/android/app/Notification.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java
index ebca041..a7543a8 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) {