Skip to content

Commit

Permalink
fix: onUpdateNotification to fix ForegroundServiceDidNotStartInTimeEx…
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasgangso committed Aug 17, 2023
1 parent 0ef7c3d commit 48df2de
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ class PlaybackService : MediaSessionService() {
override fun onGetSession(controllerInfo: MediaSession.ControllerInfo): MediaSession =
mediaSession

override fun onUpdateNotification(session: MediaSession, startInForegroundRequired: Boolean) {
super.onUpdateNotification(session, true)
}

override fun onDestroy() {
Log.d("bccm", "PlaybackService(${this.hashCode()})::onDestroy called")
playerControllers.forEach {
Expand Down

0 comments on commit 48df2de

Please sign in to comment.