최근 사용한 앱에서 태스크 종료
- service가 종료되도록 코드 추가
This commit is contained in:
@@ -69,6 +69,10 @@ class AudioContentPlayerService : MediaSessionService() {
|
||||
super.onDestroy()
|
||||
}
|
||||
|
||||
override fun onTaskRemoved(rootIntent: Intent?) {
|
||||
onStopService()
|
||||
}
|
||||
|
||||
override fun onGetSession(controllerInfo: MediaSession.ControllerInfo) = mediaSession
|
||||
|
||||
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
|
||||
|
Reference in New Issue
Block a user