!1440 CellId为空问题修改

Merge pull request !1440 from Aurora/master
This commit is contained in:
openharmony_ci 2023-10-31 07:38:18 +00:00 committed by Gitee
commit 0e19ab7301
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 1 additions and 3 deletions

View File

@ -112,8 +112,6 @@ void NetworkRegister::ProcessCsRegister(const AppExecFwk::InnerEvent::Pointer &e
UpdateNetworkSearchState(regStatus, tech, roam, DomainType::DOMAIN_TYPE_CS);
TELEPHONY_LOGI("regStatus= %{public}d radioTechnology=%{public}d roam=%{public}d slotId:%{public}d",
registrationStatus, csRegStateResult->radioTechnology, roam, slotId_);
networkSearchManager->UpdateCellLocation(
slotId_, static_cast<int32_t>(tech), csRegStateResult->cellId, csRegStateResult->lacCode);
if (networkSearchManager->CheckIsNeedNotify(slotId_) || networkSearchState_->IsEmergency()) {
TELEPHONY_LOGI("cs domain change, slotId:%{public}d", slotId_);
networkSearchManager->ProcessNotifyStateChangeEvent(slotId_);

View File

@ -305,7 +305,6 @@ void NetworkSearchHandler::RadioStateChange(const AppExecFwk::InnerEvent::Pointe
break;
}
case CORE_SERVICE_POWER_ON: {
SendUpdateCellLocationRequest();
InitGetNetworkSelectionMode();
RadioOnState();
break;
@ -509,6 +508,7 @@ void NetworkSearchHandler::RadioOnState()
GetRilOperatorInfo(serialNum, false);
GetRilPsRegistration(serialNum, false);
GetRilCsRegistration(serialNum, false);
SendUpdateCellLocationRequest();
GetRilSignalIntensity(false);
}