mirror of
https://github.com/ultrasonic/ultrasonic
synced 2025-01-27 07:46:09 +01:00
Cleanup MediaPlayerLifecycleSupport.kt
This commit is contained in:
parent
69c78f4c37
commit
81d24f6cbb
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user