minor style update

This commit is contained in:
tibbi
2022-06-26 09:47:08 +02:00
parent c0946cf0b5
commit bf31b8f8dc

View File

@ -11,12 +11,10 @@ private val OUTGOING_CALL_STATES = arrayOf(STATE_CONNECTING, STATE_DIALING, STAT
@Suppress("DEPRECATION") @Suppress("DEPRECATION")
fun Call?.getStateCompat(): Int { fun Call?.getStateCompat(): Int {
return if (this == null) { return when {
Call.STATE_DISCONNECTED this == null -> Call.STATE_DISCONNECTED
} else if (isSPlus()) { isSPlus() -> details.state
details.state else -> state
} else {
state
} }
} }