Removed API version guard from connection.audioModeIsVoip = true

This commit is contained in:
Juha Heinanen
2026-05-02 11:24:19 +03:00
parent f3bb47cdad
commit e3484faa11

View File

@ -69,8 +69,7 @@ class ConnectionService : ConnectionService() {
Connection.CAPABILITY_HOLD or
Connection.CAPABILITY_MERGE_CONFERENCE or
Connection.CAPABILITY_SWAP_CONFERENCE
if (android.os.Build.VERSION.SDK_INT >= 31)
connection.audioModeIsVoip = true
connection.audioModeIsVoip = true
val call = Call.ofCallp(callp)
if (call != null)
@ -124,8 +123,7 @@ class ConnectionService : ConnectionService() {
Connection.CAPABILITY_HOLD or
Connection.CAPABILITY_MERGE_CONFERENCE or
Connection.CAPABILITY_SWAP_CONFERENCE
if (android.os.Build.VERSION.SDK_INT >= 31)
connection.audioModeIsVoip = true
connection.audioModeIsVoip = true
// Start the SIP connection logic
if (uap != 0L) {