Fix an issue with the dialer after the end of a call

This commit is contained in:
Sylvain Berfini 2011-09-30 09:01:29 +02:00
parent 2a0d7ada5b
commit c4bccdb760

View file

@ -416,7 +416,7 @@ public class DialerActivity extends SoftVolumeActivity implements LinphoneGuiLis
enterIncallMode(lc);
}
}else if (state==LinphoneCall.State.Error){
if (lc.getCurrentCall()==call){
if (lc.getCurrentCall() == null || lc.getCurrentCall()==call){
if (mWakeLock.isHeld()) mWakeLock.release();
showToast(R.string.call_error, message);
exitCallMode();