mirror of
https://gitlab.com/ultrasonic/ultrasonic.git
synced 2025-06-16 07:22:08 +03:00
Fix a typo, make two functions private
This commit is contained in:
parent
162bb18078
commit
85e2e473e5
@ -116,7 +116,7 @@ class MediaPlayerService : Service() {
|
|||||||
downloader.stop()
|
downloader.stop()
|
||||||
shufflePlayBuffer.onDestroy()
|
shufflePlayBuffer.onDestroy()
|
||||||
mediaSession?.release()
|
mediaSession?.release()
|
||||||
mediaSession == null
|
mediaSession = null
|
||||||
} catch (ignored: Throwable) {
|
} catch (ignored: Throwable) {
|
||||||
}
|
}
|
||||||
Timber.i("MediaPlayerService stopped")
|
Timber.i("MediaPlayerService stopped")
|
||||||
@ -848,7 +848,7 @@ class MediaPlayerService : Service() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun registerMediaButtonEventReceiver() {
|
private fun registerMediaButtonEventReceiver() {
|
||||||
val component = ComponentName(packageName, MediaButtonIntentReceiver::class.java.name)
|
val component = ComponentName(packageName, MediaButtonIntentReceiver::class.java.name)
|
||||||
val mediaButtonIntent = Intent(Intent.ACTION_MEDIA_BUTTON)
|
val mediaButtonIntent = Intent(Intent.ACTION_MEDIA_BUTTON)
|
||||||
mediaButtonIntent.component = component
|
mediaButtonIntent.component = component
|
||||||
@ -863,7 +863,7 @@ class MediaPlayerService : Service() {
|
|||||||
mediaSession?.setMediaButtonReceiver(pendingIntent)
|
mediaSession?.setMediaButtonReceiver(pendingIntent)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun unregisterMediaButtonEventReceiver() {
|
private fun unregisterMediaButtonEventReceiver() {
|
||||||
mediaSession?.setMediaButtonReceiver(null)
|
mediaSession?.setMediaButtonReceiver(null)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user