mirror of
https://github.com/SimpleMobileTools/Simple-Dialer.git
synced 2025-06-05 21:49:23 +02:00
suppress deprecation warning for the whole function
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user