Skip to content

Commit

Permalink
set notification flag which MAY fix some play store crashes related t…
Browse files Browse the repository at this point in the history
…o foreground service starts
  • Loading branch information
adrian-bl committed Jan 5, 2023
1 parent 8ff9a92 commit e1ab8da
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2136,6 +2136,7 @@ public Notification createNotification(Song song, int state)
.setStyle(new androidx.media.app.NotificationCompat.MediaStyle()
.setMediaSession(mMediaSessionTracker.getSessionToken())
.setShowActionsInCompactView(0, 1, 2))
.setForegroundServiceBehavior(NotificationCompat.FOREGROUND_SERVICE_IMMEDIATE)
.build();
return n;
}
Expand Down

0 comments on commit e1ab8da

Please sign in to comment.