Fix incoming call with a paused call

This commit is contained in:
Guillaume Beraudo 2011-11-28 19:51:18 +01:00
parent a7c918dec9
commit 4c324fbe2f

View file

@ -197,8 +197,9 @@ public class LinphoneActivity extends TabActivity implements
protected void onNewIntent(Intent intent) { protected void onNewIntent(Intent intent) {
super.onNewIntent(intent); super.onNewIntent(intent);
if (intent.getData() == null) { if (intent.getData() == null) {
Log.i("LinphoneActivity received an intent without data, recreating GUI if needed"); Log.i("LinphoneActivity received an intent without data");
if (!LinphoneManager.getLc().isIncall()) return; // Ex: incoming call received
if (LinphoneManager.getLc().getCallsNb() == 0) return;
if(LinphoneManager.getLc().isInComingInvitePending()) { if(LinphoneManager.getLc().isInComingInvitePending()) {
selectDialerTab(); selectDialerTab();
} else { } else {