Fix issue where call couldn't be added from the contact view when already in call

This commit is contained in:
Sylvain Berfini 2014-05-23 14:18:51 +02:00
parent b936f3b4dc
commit 917652a4ff
2 changed files with 3 additions and 4 deletions

View file

@ -47,9 +47,10 @@ public class ContactFragment extends Fragment implements OnClickListener {
private OnClickListener dialListener = new OnClickListener() {
@Override
public void onClick(View v) {
if (LinphoneActivity.isInstanciated())
if (LinphoneActivity.isInstanciated()) {
LinphoneActivity.instance().setAddresGoToDialerAndCall(v.getTag().toString(), contact.getName(), contact.getPhotoUri());
}
}
};
private OnClickListener chatListener = new OnClickListener() {

View file

@ -876,10 +876,8 @@ public class LinphoneActivity extends FragmentActivity implements
AddressType address = new AddressText(this, null);
address.setDisplayedName(name);
address.setText(number);
if (LinphoneManager.getLc().getCallsNb() == 0) {
LinphoneManager.getInstance().newOutgoingCall(address);
}
}
public void setAddressAndGoToDialer(String number) {
Bundle extras = new Bundle();