diff --git a/src/org/linphone/ContactFragment.java b/src/org/linphone/ContactFragment.java index 166fde34e..0074c8649 100644 --- a/src/org/linphone/ContactFragment.java +++ b/src/org/linphone/ContactFragment.java @@ -95,10 +95,11 @@ public class ContactFragment extends Fragment implements OnClickListener { for (String numberOrAddress : contact.getNumerosOrAddresses()) { View v = inflater.inflate(R.layout.contact_control_row, null); + String displayednumberOrAddress = numberOrAddress; if (numberOrAddress.startsWith("sip:")) { - numberOrAddress = numberOrAddress.substring(4); + displayednumberOrAddress = displayednumberOrAddress.substring(4); } - ((TextView) v.findViewById(R.id.numeroOrAddress)).setText(numberOrAddress); + ((TextView) v.findViewById(R.id.numeroOrAddress)).setText(displayednumberOrAddress); v.findViewById(R.id.dial).setOnClickListener(dialListener); v.findViewById(R.id.dial).setTag(numberOrAddress);