Skip to content
Snippets Groups Projects
Commit 98954e55 authored by Geoffrey Métais's avatar Geoffrey Métais
Browse files

Playbackservice: Remove notification when needed

Setting foreground on launch is mandatory on Android 8+.
But it's not relevant on TV or while playing a video to show
PlaybackService notification.
parent 372f2d9c
No related branches found
No related tags found
No related merge requests found
......@@ -569,6 +569,7 @@ class PlaybackService : MediaBrowserServiceCompat(), CoroutineScope, LifecycleOw
false, mediaSession.sessionToken, sessionPendingIntent)
startForeground(3, notification)
isForeground = true
if (isVideoPlaying || AndroidDevices.showTvUi(this)) hideNotification(true)
}
private fun sendStartSessionIdIntent() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment