fix call from contact with right domain

This commit is contained in:
Margaux Clerc 2015-04-15 16:39:50 +02:00
parent 688dcebe42
commit fc53b21ea2

View file

@ -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();