mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 19:38:08 +00:00
Prevent app from removing incoming call view if callReleased event arrives in the meantime
This commit is contained in:
parent
e101ea5dc7
commit
172af3d702
1 changed files with 3 additions and 1 deletions
|
|
@ -1151,7 +1151,9 @@ public class LinphoneActivity extends FragmentActivity implements
|
|||
|
||||
if (LinphoneManager.isInstanciated() && LinphoneManager.getLc().getCallsNb() > 0) {
|
||||
LinphoneCall call = LinphoneManager.getLc().getCalls()[0];
|
||||
if (call.getCurrentParamsCopy().getVideoEnabled()) {
|
||||
if (call.getState() == LinphoneCall.State.IncomingReceived) {
|
||||
startActivity(new Intent(LinphoneActivity.this, IncomingCallActivity.class));
|
||||
} else if (call.getCurrentParamsCopy().getVideoEnabled()) {
|
||||
startVideoActivity(call);
|
||||
} else {
|
||||
startIncallActivity(call);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue