Dialer exitCall() only if no other call
This commit is contained in:
parent
1d1b6983b6
commit
5ba1181bad
1 changed files with 3 additions and 3 deletions
|
@ -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){
|
||||
if (mWakeLock.isHeld()) mWakeLock.release();
|
||||
showToast(R.string.call_error, message);
|
||||
if (lc.getCallsNb() == 0){
|
||||
if (mWakeLock.isHeld()) mWakeLock.release();
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue