mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-25 07:23:03 +00:00
Prevent crash
This commit is contained in:
parent
b19cf3e3a3
commit
f59aef881e
1 changed files with 3 additions and 1 deletions
|
@ -469,7 +469,9 @@ public class EntityFolder extends EntityOrder implements Serializable {
|
||||||
|
|
||||||
String getDisplayName(Context context, EntityFolder parent) {
|
String getDisplayName(Context context, EntityFolder parent) {
|
||||||
String n = name;
|
String n = name;
|
||||||
if (parent != null && name.startsWith(parent.name))
|
if (parent != null &&
|
||||||
|
n.startsWith(parent.name) &&
|
||||||
|
n.length() > parent.name.length() + 1)
|
||||||
n = n.substring(parent.name.length() + 1);
|
n = n.substring(parent.name.length() + 1);
|
||||||
return (display == null ? localizeName(context, n) : display);
|
return (display == null ? localizeName(context, n) : display);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue