mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 02:50:56 +01:00
Validate addresses before sending
This commit is contained in:
@@ -1217,4 +1217,11 @@ public class Helper {
|
||||
else
|
||||
return DateUtils.getRelativeTimeSpanString(context, millis);
|
||||
}
|
||||
|
||||
static String ellipsize(String text, int maxLen) {
|
||||
if (text == null || text.length() < maxLen) {
|
||||
return text;
|
||||
}
|
||||
return text.substring(0, maxLen) + "...";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user