|
@@ -117,6 +117,7 @@ public class Builder {
|
|
|
public Notification build() {
|
|
public Notification build() {
|
|
|
Uri sound = options.getSoundUri();
|
|
Uri sound = options.getSoundUri();
|
|
|
int smallIcon = options.getSmallIcon();
|
|
int smallIcon = options.getSmallIcon();
|
|
|
|
|
+ int ledColor = options.getLedColor();
|
|
|
NotificationCompat.Builder builder;
|
|
NotificationCompat.Builder builder;
|
|
|
|
|
|
|
|
builder = new NotificationCompat.Builder(context)
|
|
builder = new NotificationCompat.Builder(context)
|
|
@@ -127,8 +128,11 @@ public class Builder {
|
|
|
.setTicker(options.getText())
|
|
.setTicker(options.getText())
|
|
|
.setAutoCancel(options.isAutoClear())
|
|
.setAutoCancel(options.isAutoClear())
|
|
|
.setOngoing(options.isOngoing())
|
|
.setOngoing(options.isOngoing())
|
|
|
- .setColor(options.getColor())
|
|
|
|
|
- .setLights(options.getLedColor(), 100, 100);
|
|
|
|
|
|
|
+ .setColor(options.getColor());
|
|
|
|
|
+
|
|
|
|
|
+ if (ledColor != 0) {
|
|
|
|
|
+ builder.setLights(ledColor, 100, 100);
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
if (sound != null) {
|
|
if (sound != null) {
|
|
|
builder.setSound(sound);
|
|
builder.setSound(sound);
|