!1703 增加切主卡之后的卡账户更新

Merge pull request !1703 from Aurora/master
This commit is contained in:
openharmony_ci 2024-01-19 10:50:46 +00:00 committed by Gitee
commit d75af73fe4
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 2 deletions

View File

@ -818,7 +818,7 @@ int32_t CoreServiceClient::GetMaxSimCount()
auto proxy = GetProxy();
if (proxy == nullptr) {
TELEPHONY_LOGE("proxy is null!");
return TELEPHONY_ERR_IPC_CONNECT_STUB_FAIL;
return 0;
}
return proxy->GetMaxSimCount();
}

View File

@ -468,7 +468,7 @@ void MultiSimController::CheckIfNeedSwitchMainSlotId()
TELEPHONY_LOGI("need to set slot%{public}d primary", firstActivedSlotId);
std::thread initDataTask([&, firstActivedSlotId = firstActivedSlotId]() {
pthread_setname_np(pthread_self(), "SetPrimarySlotId");
SetPrimarySlotId(firstActivedSlotId);
CoreManagerInner::GetInstance().SetPrimarySlotId(firstActivedSlotId);
});
initDataTask.detach();
}