Can not reset the sim name in the onboarding sim flow

After the sim name has been changed, the user changed back to original one.
The map did not remove the sim item, so the onboarding flow change the
sim name.

Bug: 355138239
Flag: EXEMPT bugfix
Test: atest SimOnboardingServiceTest
Change-Id: If4276320c939604b48cf2ce8c1b6b553da699c28
This commit is contained in:
songferngwang
2024-07-25 10:18:41 +00:00
parent b21b629021
commit 9fb316de8b
2 changed files with 71 additions and 0 deletions

View File

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