minor style update

This commit is contained in:
tibbi 2022-06-26 09:47:08 +02:00
parent c0946cf0b5
commit bf31b8f8dc
1 changed files with 4 additions and 6 deletions

View File

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