mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-29 16:30:31 +05:30
use the proper exoplayer api for setting the notification icon
This commit is contained in:
parent
6bd64dde38
commit
d81bbf1094
@ -206,6 +206,7 @@ class NowPlayingNotification(
|
|||||||
setUseStopAction(true)
|
setUseStopAction(true)
|
||||||
setColorized(true)
|
setColorized(true)
|
||||||
setMediaSessionToken(mediaSession.sessionToken)
|
setMediaSessionToken(mediaSession.sessionToken)
|
||||||
|
setSmallIcon(R.drawable.ic_launcher_lockscreen)
|
||||||
setUseFastForwardActionInCompactView(true)
|
setUseFastForwardActionInCompactView(true)
|
||||||
setUseRewindActionInCompactView(true)
|
setUseRewindActionInCompactView(true)
|
||||||
}
|
}
|
||||||
|
@ -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>
|
|
Loading…
x
Reference in New Issue
Block a user