Skip to content

Commit c9be406

Browse files
ProfpatschStypox
authored andcommitted
PlayerService: inline init block & make non-optional
1 parent 462f0ad commit c9be406

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/player/PlayerService.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ class PlayerService : MediaBrowserServiceCompat() {
295295
}
296296

297297
class LocalBinder internal constructor(playerService: PlayerService) : Binder() {
298-
private val playerService = WeakReference<PlayerService?>(playerService)
298+
private val playerService = WeakReference(playerService)
299299

300300
val service: PlayerService?
301301
get() = playerService.get()

0 commit comments

Comments
 (0)