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;
|
||||
if (lpc != null) {
|
||||
String address = v.getTag().toString();
|
||||
if (address.contains("@")) {
|
||||
to = lpc.normalizePhoneNumber(address.split("@")[0]);
|
||||
} else {
|
||||
if (!address.contains("@")) {
|
||||
to = lpc.normalizePhoneNumber(address);
|
||||
} else {
|
||||
to = v.getTag().toString();
|
||||
}
|
||||
} else {
|
||||
to = v.getTag().toString();
|
||||
|
|
Loading…
Reference in a new issue