mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Fixed deprecation warnings.
This commit is contained in:
parent
9b561c9fc4
commit
31064f9099
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user