Fix the primary sim setup after the psim enabled

The psim is not loaded, the active subscriptionInfo is not changed

Bug: 329031686
Test: verify 10 times  passed.
Change-Id: Idf70aaac8571af8501becb94689f4ae447e8771d
This commit is contained in:
songferngwang
2024-03-26 16:54:04 +00:00
parent 0dbe979994
commit b6424f9146

View File

@@ -338,11 +338,6 @@ class SimOnboardingService {
suspend fun startSetupPrimarySim(context: Context) {
withContext(Dispatchers.Default) {
if (SubscriptionUtil.getActiveSubscriptions(subscriptionManager).size <= 1) {
Log.d(TAG,
"startSetupPrimarySim: number of active subscriptionInfo is less than 2"
)
} else {
setDefaultVoice(subscriptionManager, targetPrimarySimCalls)
setDefaultSms(subscriptionManager, targetPrimarySimTexts)
setDefaultData(
@@ -358,7 +353,6 @@ class SimOnboardingService {
}
// no next action, send finish
callback(CallbackType.CALLBACK_FINISH)
}
}
suspend fun startEnableDsds(context: Context) {