fix call from contact with right domain
This commit is contained in:
parent
688dcebe42
commit
fc53b21ea2
1 changed files with 3 additions and 3 deletions
|
@ -62,10 +62,10 @@ public class ContactFragment extends Fragment implements OnClickListener {
|
||||||
String to;
|
String to;
|
||||||
if (lpc != null) {
|
if (lpc != null) {
|
||||||
String address = v.getTag().toString();
|
String address = v.getTag().toString();
|
||||||
if (address.contains("@")) {
|
if (!address.contains("@")) {
|
||||||
to = lpc.normalizePhoneNumber(address.split("@")[0]);
|
|
||||||
} else {
|
|
||||||
to = lpc.normalizePhoneNumber(address);
|
to = lpc.normalizePhoneNumber(address);
|
||||||
|
} else {
|
||||||
|
to = v.getTag().toString();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
to = v.getTag().toString();
|
to = v.getTag().toString();
|
||||||
|
|
Loading…
Reference in a new issue