mirror of
https://gitee.com/openharmony/telephony_core_service
synced 2024-12-12 02:25:14 +00:00
commit
d75af73fe4
@ -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();
|
||||
}
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user