Fix issue where call couldn't be added from the contact view when already in call
This commit is contained in:
parent
b936f3b4dc
commit
917652a4ff
2 changed files with 3 additions and 4 deletions
|
@ -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() {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue