On incoming call don't go to dialer but start activity
This commit is contained in:
parent
4c324fbe2f
commit
0bd340cf60
1 changed files with 3 additions and 2 deletions
|
@ -201,14 +201,15 @@ public class LinphoneActivity extends TabActivity implements
|
||||||
// Ex: incoming call received
|
// Ex: incoming call received
|
||||||
if (LinphoneManager.getLc().getCallsNb() == 0) return;
|
if (LinphoneManager.getLc().getCallsNb() == 0) return;
|
||||||
if(LinphoneManager.getLc().isInComingInvitePending()) {
|
if(LinphoneManager.getLc().isInComingInvitePending()) {
|
||||||
selectDialerTab();
|
startIncomingCallActivity();
|
||||||
} else {
|
} else {
|
||||||
startIncallActivity();
|
startIncallActivity();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Log.i("LinphoneActivity received an intent with data");
|
||||||
|
// Ex: calling from native phone
|
||||||
if (DialerActivity.instance() != null) {
|
if (DialerActivity.instance() != null) {
|
||||||
DialerActivity.instance().newOutgoingCall(intent);
|
DialerActivity.instance().newOutgoingCall(intent);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue