``` val shouldAcquireProximityWakeLock = when (cal...
# getting-started
u
Copy code
val shouldAcquireProximityWakeLock = when (callState) {
            is CallState.OutgoingPending,
            is CallState.Outgoing,
            is CallState.ConnectingPending,
            is CallState.Connecting,
            is CallState.Confirmed -> true
            else -> false
        } && !isVideo
something like this, notice the && at the end