Cleanup MediaPlayerLifecycleSupport.kt

This commit is contained in:
tzugen 2022-04-20 17:06:30 +02:00
parent 69c78f4c37
commit 81d24f6cbb
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930
1 changed files with 0 additions and 4 deletions

View File

@ -27,8 +27,6 @@ class MediaPlayerLifecycleSupport : KoinComponent {
private val mediaPlayerController by inject<MediaPlayerController>()
private var created = false
private var headsetEventReceiver: BroadcastReceiver? = null
private var mediaButtonEventSubscription: Disposable? = null
fun onCreate() {
onCreate(false, null)
@ -73,8 +71,6 @@ class MediaPlayerLifecycleSupport : KoinComponent {
)
mediaPlayerController.clear(false)
mediaButtonEventSubscription?.dispose()
applicationContext().unregisterReceiver(headsetEventReceiver)
mediaPlayerController.onDestroy()
created = false