Moved REPLACES constant to Api

This commit is contained in:
Juha Heinanen
2026-04-03 14:42:57 +03:00
parent cc3fc1b23d
commit 12d53da16c
3 changed files with 3 additions and 3 deletions

View File

@ -20,6 +20,8 @@ object Api {
const val CALL_STATE_EARLY = 4
const val REPLACES = 1
external fun account_set_display_name(acc: Long, dn: String): Int
external fun account_display_name(acc: Long): String
external fun account_aor(acc: Long): String

View File

@ -129,8 +129,6 @@ class Call(val callp: Long, val ua: UserAgent, val peerUri: String, val dir: Str
companion object {
const val REPLACES = 1
fun calls(): ArrayList<Call> {
return BaresipService.calls
}

View File

@ -1579,7 +1579,7 @@ private fun CallRow(
enabled = call.transferButtonEnabled.value,
onClick = {
if (call.onHoldCall != null) {
if (!Api.call_supported(call.callp, Call.REPLACES)) {
if (!Api.call_supported(call.callp, API.REPLACES)) {
alertTitle.value = ctx.getString(R.string.notice)
alertMessage.value = ctx.getString(R.string.replaces_not_supported)
showAlert.value = true