Added trim

This commit is contained in:
Adimarantis 2021-02-28 19:33:54 +01:00
parent 21f5bb70b8
commit d88c65067c

View file

@ -76,8 +76,8 @@ public class SignalProfile {
}
public String getDisplayName() {
// First name and last name (if set) are separated by a NULL char
return name == null ? null : name.replace("\0", " ");
// First name and last name (if set) are separated by a NULL char + trim space in case only one is filled
return name == null ? null : name.replace("\0", " ").trim();
}
public String getAbout() {