use the proper exoplayer api for setting the notification icon

This commit is contained in:
Bnyro 2022-12-22 10:48:46 +01:00
parent 6bd64dde38
commit d81bbf1094
2 changed files with 1 additions and 6 deletions

View File

@ -206,6 +206,7 @@ class NowPlayingNotification(
setUseStopAction(true)
setColorized(true)
setMediaSessionToken(mediaSession.sessionToken)
setSmallIcon(R.drawable.ic_launcher_lockscreen)
setUseFastForwardActionInCompactView(true)
setUseRewindActionInCompactView(true)
}

View File

@ -1,6 +0,0 @@
<?xml version="1.0" encoding="utf-8"?><!-- Replaces the drawables of the default exoplayer controls (see https://github.com/google/ExoPlayer/blob/release-v2/library/ui/src/main/res/values/drawables.xml) -->
<resources>
<drawable name="exo_notification_small_icon">@drawable/ic_launcher_lockscreen</drawable>
</resources>