Prevent app from removing incoming call view if callReleased event arrives in the meantime

This commit is contained in:
Sylvain Berfini 2013-01-09 12:57:21 +01:00
parent e101ea5dc7
commit 172af3d702

View file

@ -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);