|
@@ -118,6 +118,7 @@ public class Builder {
|
|
|
Uri sound = options.getSoundUri();
|
|
Uri sound = options.getSoundUri();
|
|
|
int smallIcon = options.getSmallIcon();
|
|
int smallIcon = options.getSmallIcon();
|
|
|
int ledColor = options.getLedColor();
|
|
int ledColor = options.getLedColor();
|
|
|
|
|
+ long[] vibrate = options.getVibrate();
|
|
|
NotificationCompat.Builder builder;
|
|
NotificationCompat.Builder builder;
|
|
|
|
|
|
|
|
builder = new NotificationCompat.Builder(context)
|
|
builder = new NotificationCompat.Builder(context)
|
|
@@ -138,6 +139,10 @@ public class Builder {
|
|
|
builder.setSound(sound);
|
|
builder.setSound(sound);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (vibrate != null) {
|
|
|
|
|
+ builder.setVibrate(vibrate);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
if (smallIcon == 0) {
|
|
if (smallIcon == 0) {
|
|
|
builder.setSmallIcon(options.getIcon());
|
|
builder.setSmallIcon(options.getIcon());
|
|
|
} else {
|
|
} else {
|