@@ -1183,13 +1183,13 @@ void onNotificationCall(RCConnection connection, HashMap<String, String> customH
1183
1183
// Need this to show up as Heads-up Notification
1184
1184
.setPriority (NotificationCompat .PRIORITY_HIGH )
1185
1185
.setAutoCancel (true ) // cancel notification when user acts on it (Important: only applies to default notification area, not additional actions)
1186
- .addAction (R .drawable .ic_videocam_24dp , "" , PendingIntent .getService (getApplicationContext (), 0 , serviceIntentVideo , PendingIntent .FLAG_ONE_SHOT ))
1187
- .addAction (R .drawable .ic_call_24dp , "" , PendingIntent .getService (getApplicationContext (), 0 , serviceIntentAudio , PendingIntent .FLAG_ONE_SHOT ))
1188
- .addAction (R .drawable .ic_call_end_24dp , "" , PendingIntent .getService (getApplicationContext (), 0 , serviceIntentDecline , PendingIntent .FLAG_ONE_SHOT ))
1186
+ .addAction (R .drawable .ic_videocam_24dp , "" , PendingIntent .getService (getApplicationContext (), 0 , serviceIntentVideo , PendingIntent .FLAG_UPDATE_CURRENT ))
1187
+ .addAction (R .drawable .ic_call_24dp , "" , PendingIntent .getService (getApplicationContext (), 0 , serviceIntentAudio , PendingIntent .FLAG_UPDATE_CURRENT ))
1188
+ .addAction (R .drawable .ic_call_end_24dp , "" , PendingIntent .getService (getApplicationContext (), 0 , serviceIntentDecline , PendingIntent .FLAG_UPDATE_CURRENT ))
1189
1189
.setVibrate (notificationVibrationPattern )
1190
1190
.setLights (notificationColor , notificationColorPattern [0 ], notificationColorPattern [1 ])
1191
- .setContentIntent (PendingIntent .getService (getApplicationContext (), 0 , serviceIntentDefault , PendingIntent .FLAG_ONE_SHOT ))
1192
- .setDeleteIntent (PendingIntent .getService (getApplicationContext (), 0 , serviceIntentDelete , PendingIntent .FLAG_ONE_SHOT ));
1191
+ .setContentIntent (PendingIntent .getService (getApplicationContext (), 0 , serviceIntentDefault , PendingIntent .FLAG_UPDATE_CURRENT ))
1192
+ .setDeleteIntent (PendingIntent .getService (getApplicationContext (), 0 , serviceIntentDelete , PendingIntent .FLAG_UPDATE_CURRENT ));
1193
1193
1194
1194
Notification notification = builder .build ();
1195
1195
// Add FLAG_INSISTENT so that the notification rings repeatedly (FLAG_INSISTENT is not exposed via builder, let's add manually)
0 commit comments