mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-18 03:48:08 +00:00
Normalize numbers in contact
This commit is contained in:
parent
4cc5417a63
commit
2c63f44daa
1 changed files with 3 additions and 1 deletions
|
|
@ -79,8 +79,9 @@ public class ContactFragment extends Fragment implements OnClickListener {
|
|||
private OnClickListener chatListener = new OnClickListener() {
|
||||
@Override
|
||||
public void onClick(View v) {
|
||||
if (LinphoneActivity.isInstanciated())
|
||||
if (LinphoneActivity.isInstanciated()) {
|
||||
LinphoneActivity.instance().displayChat(v.getTag().toString());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -147,6 +148,7 @@ public class ContactFragment extends Fragment implements OnClickListener {
|
|||
v.findViewById(R.id.start_chat).setOnClickListener(chatListener);
|
||||
LinphoneProxyConfig lpc = LinphoneManager.getLc().getDefaultProxyConfig();
|
||||
if (lpc != null) {
|
||||
displayednumberOrAddress = lpc.normalizePhoneNumber(displayednumberOrAddress);
|
||||
if (!displayednumberOrAddress.startsWith("sip:")) {
|
||||
numberOrAddress = "sip:" + displayednumberOrAddress;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue