Fixs user input nothing, but save it successfully

- If user inputs nothing, do nothing for this action.

fix: 333642116
Test: Manual test
Change-Id: I66213f5d5c47d2b85d3849c95e7cf076e249420e
This commit is contained in:
tomhsu
2024-04-10 06:50:05 +00:00
parent 6a59b93701
commit 6f27b8bca7

View File

@@ -225,7 +225,7 @@ class SimOnboardingService {
}
fun addItemForRenaming(subInfo: SubscriptionInfo, newName: String) {
if (subInfo.displayName == newName) {
if (newName.isEmpty() && subInfo.displayName == newName) {
return
}
renameMutableMap[subInfo.subscriptionId] = newName