replace negation "!" with ".not()"
This commit is contained in:
parent
d9454af63e
commit
3239ec5d1f
@ -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 -> {
|
||||||
|
Loading…
Reference in New Issue
Block a user