diff options
| author | 2016-02-02 20:43:28 +0000 | |
|---|---|---|
| committer | 2016-02-02 20:43:28 +0000 | |
| commit | a37278b0a6ce94f06fd403155e17b7d42606741b (patch) | |
| tree | 81426ef6481d0f7f240b9357732f30150504ebdd | |
| parent | b52567d6a3197718a912b83799b92c47fe6a482d (diff) | |
| parent | 4c0c202f51e734fe0a10adeef6f996eaff62886c (diff) | |
Merge "Don't require apps to call showLights to use default lights."
| -rw-r--r-- | core/java/android/app/Notification.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/java/android/app/Notification.java b/core/java/android/app/Notification.java index 7f037f22aa8d..34c90c165490 100644 --- a/core/java/android/app/Notification.java +++ b/core/java/android/app/Notification.java @@ -2623,9 +2623,6 @@ public class Notification implements Parcelable if (onMs != 0 || offMs != 0) { mN.flags |= FLAG_SHOW_LIGHTS; } - if ((mN.defaults & DEFAULT_LIGHTS) != 0) { - mN.flags |= FLAG_SHOW_LIGHTS; - } return this; } @@ -3603,6 +3600,10 @@ public class Notification implements Parcelable mStyle.buildStyled(mN); } + if ((mN.defaults & DEFAULT_LIGHTS) != 0) { + mN.flags |= FLAG_SHOW_LIGHTS; + } + return mN; } |