Show entire email if external
This commit is contained in:
@@ -61,14 +61,16 @@ public class ContactsCompletionView extends TokenCompleteTextView {
|
|||||||
} catch (GeneralSecurityException e) {
|
} catch (GeneralSecurityException e) {
|
||||||
// Not a valid Destination
|
// Not a valid Destination
|
||||||
// Assume the user meant an external address
|
// Assume the user meant an external address
|
||||||
return new Person(completionText, completionText.replace(" ", "") + "@example.com", true);
|
completionText = completionText.replace(" ", "") + "@example.com";
|
||||||
|
return new Person(completionText, completionText, true);
|
||||||
}
|
}
|
||||||
} catch (PasswordException e) {
|
} catch (PasswordException e) {
|
||||||
// TODO handle
|
// TODO handle
|
||||||
return new Person(completionText, completionText.replace(" ", "") + "@example.com", true);
|
completionText = completionText.replace(" ", "") + "@example.com";
|
||||||
|
return new Person(completionText, completionText, true);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return new Person(completionText.substring(0, index), completionText, true);
|
return new Person(completionText, completionText, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user