Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
123mpozzi committed Oct 24, 2024
1 parent 08d0dd5 commit c78df51
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.bitmovin.player.reactnative


import android.content.ComponentName
import android.content.Context
import android.content.Intent
Expand All @@ -20,7 +19,7 @@ class MediaSessionConnectionManager(val context: ReactApplicationContext) {
private val _serviceBinder = MutableStateFlow<MediaSessionPlaybackService.ServiceBinder?>(null)
val serviceBinder = _serviceBinder.asStateFlow()

inner class MediaSessionServiceConnection: ServiceConnection {
inner class MediaSessionServiceConnection : ServiceConnection {
override fun onServiceConnected(className: ComponentName, service: IBinder) {
// We've bound to the Service, cast the IBinder and get the Player instance
val binder = service as MediaSessionPlaybackService.ServiceBinder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import com.bitmovin.player.api.event.PlayerEvent
import com.bitmovin.player.api.event.SourceEvent
import com.bitmovin.player.api.ui.PlayerViewConfig
import com.bitmovin.player.api.ui.StyleConfig
import com.bitmovin.player.reactnative.converter.lockScreenControlConfig
import com.bitmovin.player.reactnative.converter.toJson
import com.bitmovin.player.reactnative.extensions.playerModule
import com.facebook.react.ReactActivity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -884,7 +884,7 @@ fun String.toMediaType(): MediaType? = when (this) {
}

data class LockScreenControlConfig(
var isEnabled: Boolean = false
var isEnabled: Boolean = false,
)

fun ReadableMap.toLockScreenControlConfig(): LockScreenControlConfig = LockScreenControlConfig().apply {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class MediaSessionPlaybackService : MediaSessionService() {
}

fun connectSession() = mediaSession?.let { addSession(it) }
fun disconnectSession() = mediaSession?.let{
fun disconnectSession() = mediaSession?.let {
removeSession(it)
it.release()
}
Expand Down

0 comments on commit c78df51

Please sign in to comment.