mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-02-21 22:07:44 +01:00
minor style update
This commit is contained in:
parent
c0946cf0b5
commit
bf31b8f8dc
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user