From 5ba1181bad2ed6c1aefb1d20d2b600774f2ab50c Mon Sep 17 00:00:00 2001 From: Guillaume Beraudo Date: Fri, 7 Oct 2011 16:13:44 +0200 Subject: [PATCH] Dialer exitCall() only if no other call --- src/org/linphone/DialerActivity.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/org/linphone/DialerActivity.java b/src/org/linphone/DialerActivity.java index c2ca73673..2ba3437f7 100644 --- a/src/org/linphone/DialerActivity.java +++ b/src/org/linphone/DialerActivity.java @@ -459,15 +459,15 @@ public class DialerActivity extends Activity implements LinphoneGuiListener, Lin enterIncallMode(lc); } }else if (state==LinphoneCall.State.Error){ - if (lc.getCurrentCall() == null || lc.getCurrentCall()==call){ + showToast(R.string.call_error, message); + if (lc.getCallsNb() == 0){ if (mWakeLock.isHeld()) mWakeLock.release(); - showToast(R.string.call_error, message); exitCallMode(); LinphoneActivity.instance().stopOrientationSensor(); mCurrentCall=null; } }else if (state==LinphoneCall.State.CallEnd){ - if (lc.getCurrentCall() == null || lc.getCurrentCall()==call){ + if (lc.getCallsNb() == 0){ exitCallMode(); LinphoneActivity.instance().stopOrientationSensor(); mCurrentCall=null;