|
@@ -136,7 +136,7 @@ public final class Builder {
|
|
|
.setOngoing(options.isSticky())
|
|
.setOngoing(options.isSticky())
|
|
|
.setColor(options.getColor())
|
|
.setColor(options.getColor())
|
|
|
.setVisibility(options.getVisibility())
|
|
.setVisibility(options.getVisibility())
|
|
|
- .setPriority(options.getPriority())
|
|
|
|
|
|
|
+ .setPriority(options.getPrio())
|
|
|
.setShowWhen(options.showClock())
|
|
.setShowWhen(options.showClock())
|
|
|
.setUsesChronometer(options.showChronometer())
|
|
.setUsesChronometer(options.showChronometer())
|
|
|
.setGroup(options.getGroup())
|
|
.setGroup(options.getGroup())
|
|
@@ -315,10 +315,13 @@ public final class Builder {
|
|
|
return;
|
|
return;
|
|
|
|
|
|
|
|
Intent intent = new Intent(context, clearReceiver)
|
|
Intent intent = new Intent(context, clearReceiver)
|
|
|
- .putExtras(extras)
|
|
|
|
|
.setAction(options.getIdentifier())
|
|
.setAction(options.getIdentifier())
|
|
|
.putExtra(Notification.EXTRA_ID, options.getId());
|
|
.putExtra(Notification.EXTRA_ID, options.getId());
|
|
|
|
|
|
|
|
|
|
+ if (extras != null) {
|
|
|
|
|
+ intent.putExtras(extras);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
int reqCode = random.nextInt();
|
|
int reqCode = random.nextInt();
|
|
|
|
|
|
|
|
PendingIntent deleteIntent = PendingIntent.getBroadcast(
|
|
PendingIntent deleteIntent = PendingIntent.getBroadcast(
|
|
@@ -339,12 +342,15 @@ public final class Builder {
|
|
|
return;
|
|
return;
|
|
|
|
|
|
|
|
Intent intent = new Intent(context, clickActivity)
|
|
Intent intent = new Intent(context, clickActivity)
|
|
|
- .putExtras(extras)
|
|
|
|
|
.putExtra(Notification.EXTRA_ID, options.getId())
|
|
.putExtra(Notification.EXTRA_ID, options.getId())
|
|
|
.putExtra(Action.EXTRA_ID, Action.CLICK_ACTION_ID)
|
|
.putExtra(Action.EXTRA_ID, Action.CLICK_ACTION_ID)
|
|
|
.putExtra(Options.EXTRA_LAUNCH, options.isLaunchingApp())
|
|
.putExtra(Options.EXTRA_LAUNCH, options.isLaunchingApp())
|
|
|
.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
|
|
.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
|
|
|
|
|
|
|
|
|
|
+ if (extras != null) {
|
|
|
|
|
+ intent.putExtras(extras);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
int reqCode = random.nextInt();
|
|
int reqCode = random.nextInt();
|
|
|
|
|
|
|
|
PendingIntent contentIntent = PendingIntent.getActivity(
|
|
PendingIntent contentIntent = PendingIntent.getActivity(
|
|
@@ -386,12 +392,15 @@ public final class Builder {
|
|
|
*/
|
|
*/
|
|
|
private PendingIntent getPendingIntentForAction (Action action) {
|
|
private PendingIntent getPendingIntentForAction (Action action) {
|
|
|
Intent intent = new Intent(context, clickActivity)
|
|
Intent intent = new Intent(context, clickActivity)
|
|
|
- .putExtras(extras)
|
|
|
|
|
.putExtra(Notification.EXTRA_ID, options.getId())
|
|
.putExtra(Notification.EXTRA_ID, options.getId())
|
|
|
.putExtra(Action.EXTRA_ID, action.getId())
|
|
.putExtra(Action.EXTRA_ID, action.getId())
|
|
|
.putExtra(Options.EXTRA_LAUNCH, action.isLaunchingApp())
|
|
.putExtra(Options.EXTRA_LAUNCH, action.isLaunchingApp())
|
|
|
.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
|
|
.setFlags(Intent.FLAG_ACTIVITY_NO_HISTORY);
|
|
|
|
|
|
|
|
|
|
+ if (extras != null) {
|
|
|
|
|
+ intent.putExtras(extras);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
int reqCode = random.nextInt();
|
|
int reqCode = random.nextInt();
|
|
|
|
|
|
|
|
return PendingIntent.getActivity(
|
|
return PendingIntent.getActivity(
|