From 172af3d7023e792f17a18e79067e179fffe6aba4 Mon Sep 17 00:00:00 2001 From: Sylvain Berfini Date: Wed, 9 Jan 2013 12:57:21 +0100 Subject: [PATCH] Prevent app from removing incoming call view if callReleased event arrives in the meantime --- src/org/linphone/LinphoneActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/org/linphone/LinphoneActivity.java b/src/org/linphone/LinphoneActivity.java index c25e904e4..0f7bcfbd1 100644 --- a/src/org/linphone/LinphoneActivity.java +++ b/src/org/linphone/LinphoneActivity.java @@ -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);