mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-08-29 05:37:49 +00:00
PlayerService: inline init block & make non-optional
This commit is contained in:
parent
462f0ad5c0
commit
c9be4066f2
@ -295,7 +295,7 @@ class PlayerService : MediaBrowserServiceCompat() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class LocalBinder internal constructor(playerService: PlayerService) : Binder() {
|
class LocalBinder internal constructor(playerService: PlayerService) : Binder() {
|
||||||
private val playerService = WeakReference<PlayerService?>(playerService)
|
private val playerService = WeakReference(playerService)
|
||||||
|
|
||||||
val service: PlayerService?
|
val service: PlayerService?
|
||||||
get() = playerService.get()
|
get() = playerService.get()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user