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…
Reference in a new issue