Subscription name has whitespace trimmed to determine uniqueness

For example, if a subscription has the name "subsc" and another has
"subsc    " the extra unique information will be added to the
subscriptions.

Test: atest -c SubscriptionUtilTest
Bug: 183664625
Change-Id: Ia137169f6cdd9804ab04126e5045c9fb61556d54
This commit is contained in:
Jeremy Goldman
2021-04-07 16:26:52 +08:00
parent 0a03f8e2d2
commit a51780f35d
2 changed files with 32 additions and 2 deletions

View File

@@ -256,7 +256,7 @@ public class SubscriptionUtil {
.map(i -> {
DisplayInfo info = new DisplayInfo();
info.subscriptionInfo = i;
info.originalName = i.getDisplayName();
info.originalName = i.getDisplayName().toString().trim();
return info;
});