2
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-08-22 01:58:16 +00:00

PlayerService: inline init block & make non-optional

This commit is contained in:
Profpatsch 2025-05-14 21:38:59 +02:00 committed by Stypox
parent 462f0ad5c0
commit c9be4066f2
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23

View File

@ -295,7 +295,7 @@ class PlayerService : MediaBrowserServiceCompat() {
}
class LocalBinder internal constructor(playerService: PlayerService) : Binder() {
private val playerService = WeakReference<PlayerService?>(playerService)
private val playerService = WeakReference(playerService)
val service: PlayerService?
get() = playerService.get()