Skip to content

Commit

Permalink
test active session
Browse files Browse the repository at this point in the history
  • Loading branch information
LikhanovD committed Aug 2, 2019
1 parent 73d9c11 commit df915ab
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ open class RadioService : MediaBrowserServiceCompat(), PlaybackManager.PlaybackS
sessionToken = session.sessionToken
session.setCallback(playbackManager.mediaSessionCallback)
session.setFlags(MediaSessionCompat.FLAG_HANDLES_MEDIA_BUTTONS or MediaSessionCompat.FLAG_HANDLES_TRANSPORT_CONTROLS)
session.isActive = true

radioNotificationManager = RadioNotificationManager(service, baseContext)
mediaRouter = MediaRouter.getInstance(applicationContext)
Expand Down

0 comments on commit df915ab

Please sign in to comment.