replace negation "!" with ".not()"

This commit is contained in:
Florian Renaud 2022-11-15 10:52:09 +01:00
parent d9454af63e
commit 3239ec5d1f

View File

@ -340,7 +340,7 @@ class VoiceBroadcastPlayerImpl @Inject constructor(
private fun updateLiveListeningMode(seekPosition: Int? = null) { private fun updateLiveListeningMode(seekPosition: Int? = null) {
isLiveListening = when { isLiveListening = when {
// the current voice broadcast is not live (ended) // the current voice broadcast is not live (ended)
!currentVoiceBroadcastEvent?.isLive.orFalse() -> false currentVoiceBroadcastEvent?.isLive?.not().orFalse() -> false
// the player is stopped or paused // the player is stopped or paused
playingState == State.IDLE || playingState == State.PAUSED -> false playingState == State.IDLE || playingState == State.PAUSED -> false
seekPosition != null -> { seekPosition != null -> {