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,8 +47,9 @@ public class ContactFragment extends Fragment implements OnClickListener {
|
||||||
private OnClickListener dialListener = new OnClickListener() {
|
private OnClickListener dialListener = new OnClickListener() {
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View v) {
|
public void onClick(View v) {
|
||||||
if (LinphoneActivity.isInstanciated())
|
if (LinphoneActivity.isInstanciated()) {
|
||||||
LinphoneActivity.instance().setAddresGoToDialerAndCall(v.getTag().toString(), contact.getName(), contact.getPhotoUri());
|
LinphoneActivity.instance().setAddresGoToDialerAndCall(v.getTag().toString(), contact.getName(), contact.getPhotoUri());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -876,9 +876,7 @@ public class LinphoneActivity extends FragmentActivity implements
|
||||||
AddressType address = new AddressText(this, null);
|
AddressType address = new AddressText(this, null);
|
||||||
address.setDisplayedName(name);
|
address.setDisplayedName(name);
|
||||||
address.setText(number);
|
address.setText(number);
|
||||||
if (LinphoneManager.getLc().getCallsNb() == 0) {
|
LinphoneManager.getInstance().newOutgoingCall(address);
|
||||||
LinphoneManager.getInstance().newOutgoingCall(address);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setAddressAndGoToDialer(String number) {
|
public void setAddressAndGoToDialer(String number) {
|
||||||
|
|
Loading…
Reference in a new issue