Merge "Fixs user input nothing, but save it successfully" into main

This commit is contained in:
Tom Hsu
2024-04-10 07:54:34 +00:00
committed by Android (Google) Code Review

View File

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