Validate addresses before sending

This commit is contained in:
M66B
2019-04-23 16:18:21 +02:00
parent 9ee7c9f591
commit 9f3ce6bd4f
3 changed files with 37 additions and 3 deletions

View File

@@ -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) + "...";
}
}