Don't navigate to dialer before outgoing call

This commit is contained in:
Sylvain Berfini 2013-04-15 10:40:55 +02:00
parent 2a6740b85d
commit 4c6e9d0101

View file

@ -855,12 +855,12 @@ public class LinphoneActivity extends FragmentActivity implements
@Override @Override
public void setAddresGoToDialerAndCall(String number, String name, Uri photo) { public void setAddresGoToDialerAndCall(String number, String name, Uri photo) {
Bundle extras = new Bundle(); // Bundle extras = new Bundle();
extras.putString("SipUri", number); // extras.putString("SipUri", number);
extras.putString("DisplayName", name); // extras.putString("DisplayName", name);
extras.putString("Photo", photo == null ? null : photo.toString()); // extras.putString("Photo", photo == null ? null : photo.toString());
changeCurrentFragment(FragmentsAvailable.DIALER, extras); // changeCurrentFragment(FragmentsAvailable.DIALER, extras);
AddressType address = new AddressText(this, null); AddressType address = new AddressText(this, null);
address.setDisplayedName(name); address.setDisplayedName(name);
address.setText(number); address.setText(number);
@ -1436,6 +1436,5 @@ public class LinphoneActivity extends FragmentActivity implements
interface ContactPicked { interface ContactPicked {
void setAddresGoToDialerAndCall(String number, String name, Uri photo); void setAddresGoToDialerAndCall(String number, String name, Uri photo);
void goToDialer(); void goToDialer();
} }