suppress deprecation warning for the whole function

This commit is contained in:
Mysochenko Yuriy 2022-05-10 07:41:16 +03:00
parent 3906af8878
commit 1ca53b4f59
1 changed files with 1 additions and 1 deletions

View File

@ -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
}
}