mirror of
https://gitee.com/openharmony/telephony_core_service
synced 2025-03-01 14:06:06 +00:00
add variable init.
Signed-off-by: clevercong <lichunlin2@huawei.com>
This commit is contained in:
parent
0a0c039ee7
commit
a6b024a4dc
@ -149,7 +149,7 @@ bool MultiSimMonitor::IsValidSlotId(int32_t slotId)
|
||||
bool MultiSimMonitor::IsVSimSlotId(int32_t slotId)
|
||||
{
|
||||
if (TELEPHONY_EXT_WRAPPER.getVSimSlotId_) {
|
||||
int vSimSlotId;
|
||||
int vSimSlotId = DEFAULT_SIM_SLOT_ID_REMOVE;
|
||||
TELEPHONY_EXT_WRAPPER.getVSimSlotId_(vSimSlotId);
|
||||
return vSimSlotId == slotId;
|
||||
}
|
||||
|
@ -475,6 +475,7 @@ void SimStateHandle::GetSimCardData(int32_t slotId, const AppExecFwk::InnerEvent
|
||||
if (param != nullptr) {
|
||||
iccState.simType_ = param->simType;
|
||||
iccState.simStatus_ = param->simState;
|
||||
modemInitDone_ = true;
|
||||
TELEPHONY_LOGI("SimStateHandle::GetSimCardData(), slot%{public}d, type = %{public}d, status = %{public}d",
|
||||
slotId, iccState.simType_, iccState.simStatus_);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user