Fix FC when incoming call
This commit is contained in:
parent
f8aa2468f1
commit
d443ac5c2c
1 changed files with 15 additions and 13 deletions
|
@ -181,6 +181,7 @@ public class DialerFragment extends Fragment {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void newOutgoingCall(Intent intent) {
|
public void newOutgoingCall(Intent intent) {
|
||||||
|
if (intent != null && intent.getData() != null) {
|
||||||
String scheme = intent.getData().getScheme();
|
String scheme = intent.getData().getScheme();
|
||||||
if (scheme.startsWith("imto")) {
|
if (scheme.startsWith("imto")) {
|
||||||
mAddress.setText("sip:" + intent.getData().getLastPathSegment());
|
mAddress.setText("sip:" + intent.getData().getLastPathSegment());
|
||||||
|
@ -197,3 +198,4 @@ public class DialerFragment extends Fragment {
|
||||||
LinphoneManager.getInstance().newOutgoingCall(mAddress);
|
LinphoneManager.getInstance().newOutgoingCall(mAddress);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue