mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 03:18:06 +00:00
Ask CallActivity to finish if no call found when trying to answer/hangup
This commit is contained in:
parent
504f6e2a2c
commit
4639e054bb
1 changed files with 4 additions and 0 deletions
|
|
@ -617,6 +617,7 @@ class CurrentCallViewModel
|
|||
coreContext.answerCall(call)
|
||||
} else {
|
||||
Log.e("$TAG No call found in incoming state, can't answer any!")
|
||||
finishActivityEvent.postValue(Event(true))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -628,6 +629,9 @@ class CurrentCallViewModel
|
|||
Log.i("$TAG Terminating call [${currentCall.remoteAddress.asStringUriOnly()}]")
|
||||
terminatedByUser = true
|
||||
coreContext.terminateCall(currentCall)
|
||||
} else {
|
||||
Log.e("$TAG No call to decline!")
|
||||
finishActivityEvent.postValue(Event(true))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue