mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fix contact issue
This commit is contained in:
parent
59b79eb7c1
commit
a669ad0dc9
1 changed files with 3 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue