Fixed deprecation warnings.

This commit is contained in:
casey langen 2019-12-24 17:53:37 -08:00
parent 9b561c9fc4
commit 31064f9099

View File

@ -190,9 +190,6 @@ class SystemService : Service() {
mediaSession = MediaSessionCompat(
this, SESSION_TAG, receiver, null)
.apply {
this.setFlags(
MediaSessionCompat.FLAG_HANDLES_MEDIA_BUTTONS or
MediaSessionCompat.FLAG_HANDLES_TRANSPORT_CONTROLS)
this.setCallback(mediaSessionCallback)
this.isActive = true
}