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)
|
private val OUTGOING_CALL_STATES = arrayOf(STATE_CONNECTING, STATE_DIALING, STATE_SELECT_PHONE_ACCOUNT)
|
||||||
|
|
||||||
|
@Suppress("DEPRECATION")
|
||||||
fun Call.getStateCompat(): Int {
|
fun Call.getStateCompat(): Int {
|
||||||
return if (isSPlus()) {
|
return if (isSPlus()) {
|
||||||
details.state
|
details.state
|
||||||
} else {
|
} else {
|
||||||
@Suppress("DEPRECATION")
|
|
||||||
state
|
state
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user