Easiest way to make outgoing call from manager

This commit is contained in:
Sylvain Berfini 2013-11-12 12:43:07 +01:00
parent 87e8ae05b4
commit d1785e31f7

View file

@ -371,7 +371,10 @@ public class LinphoneManager implements LinphoneCoreListener {
public void newOutgoingCall(AddressType address) { public void newOutgoingCall(AddressType address) {
String to = address.getText().toString(); String to = address.getText().toString();
newOutgoingCall(to, address.getDisplayedName());
}
public void newOutgoingCall(String to, String displayName) {
// if (mLc.isIncall()) { // if (mLc.isIncall()) {
// listenerDispatcher.tryingNewOutgoingCallButAlreadyInCall(); // listenerDispatcher.tryingNewOutgoingCallButAlreadyInCall();
// return; // return;
@ -392,7 +395,7 @@ public class LinphoneManager implements LinphoneCoreListener {
mListenerDispatcher.tryingNewOutgoingCallButWrongDestinationAddress(); mListenerDispatcher.tryingNewOutgoingCallButWrongDestinationAddress();
return; return;
} }
lAddress.setDisplayName(address.getDisplayedName()); lAddress.setDisplayName(displayName);
boolean isLowBandwidthConnection = !LinphoneUtils.isHightBandwidthConnection(LinphoneService.instance().getApplicationContext()); boolean isLowBandwidthConnection = !LinphoneUtils.isHightBandwidthConnection(LinphoneService.instance().getApplicationContext());