mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-05 16:43:26 +02:00
Limit reported error length
This commit is contained in:
@@ -2649,6 +2649,12 @@ public class Helper {
|
||||
return value;
|
||||
}
|
||||
|
||||
static String limit(String value, int max) {
|
||||
if (TextUtils.isEmpty(value) || value.length() < max)
|
||||
return value;
|
||||
return value.substring(0, max);
|
||||
}
|
||||
|
||||
// Files
|
||||
|
||||
static {
|
||||
|
||||
Reference in New Issue
Block a user