Skip to content

Commit

Permalink
Fix various linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
123mpozzi committed Oct 23, 2024
1 parent 51049c5 commit c1bdca8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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 BackgroundPlaybackConnectionManager(val context: ReactApplicationContext)
private val _serviceBinder = MutableStateFlow<BackgroundPlaybackService.ServiceBinder?>(null)
val serviceBinder = _serviceBinder.asStateFlow()

inner class BackgroundPlaybackConnection: ServiceConnection {
inner class BackgroundPlaybackConnection : 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 BackgroundPlaybackService.ServiceBinder
Expand Down Expand Up @@ -51,4 +50,4 @@ class BackgroundPlaybackConnectionManager(val context: ReactApplicationContext)
nativeId: NativeId = playerId,
playerModule: PlayerModule? = context.playerModule,
): Player = playerModule?.getPlayerOrNull(nativeId) ?: throw IllegalArgumentException("Invalid PlayerId $nativeId")
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ class BackgroundPlaybackService : Service() {
override fun onBind(intent: Intent?): IBinder {
return binder
}
}
}

0 comments on commit c1bdca8

Please sign in to comment.