Skip to content

Commit

Permalink
Fix issue HBiSoft#88 & HBiSoft#89
Browse files Browse the repository at this point in the history
  • Loading branch information
HBiSoft committed Oct 7, 2021
1 parent a8207fe commit f9653c1
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,14 @@ else if (pauseResumeAction != null && pauseResumeAction.equals("resume")){
Notification notification;

Intent myIntent = new Intent(this, NotificationReceiver.class);
PendingIntent pendingIntent;

PendingIntent pendingIntent = PendingIntent.getBroadcast(this, 0, myIntent, 0);
if (Build.VERSION.SDK_INT >= 31){
pendingIntent = PendingIntent.getBroadcast(this, 0, myIntent, PendingIntent.FLAG_IMMUTABLE);
}else{
pendingIntent = PendingIntent.getBroadcast(this, 0, myIntent, 0);

}

Notification.Action action = new Notification.Action.Builder(
Icon.createWithResource(this, android.R.drawable.presence_video_online),
Expand Down

0 comments on commit f9653c1

Please sign in to comment.