Fix a typo, make two functions private

This commit is contained in:
tzugen 2021-05-06 12:53:25 +02:00
parent 162bb18078
commit 85e2e473e5
No known key found for this signature in database
GPG Key ID: 61E9C34BC10EC930

View File

@ -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)
} }