suppress deprecation warning for the whole function
This commit is contained in:
parent
3906af8878
commit
1ca53b4f59
|
@ -8,11 +8,11 @@ import com.simplemobiletools.commons.helpers.isSPlus
|
|||
|
||||
private val OUTGOING_CALL_STATES = arrayOf(STATE_CONNECTING, STATE_DIALING, STATE_SELECT_PHONE_ACCOUNT)
|
||||
|
||||
@Suppress("DEPRECATION")
|
||||
fun Call.getStateCompat(): Int {
|
||||
return if (isSPlus()) {
|
||||
details.state
|
||||
} else {
|
||||
@Suppress("DEPRECATION")
|
||||
state
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue