Signed-off-by: l30054665 <lishang21@huawei.com>
This commit is contained in:
l30054665
2024-02-05 16:52:47 +08:00
parent 120dd75f9a
commit 320f757c41
+2 -2
View File
@@ -290,7 +290,7 @@ int32_t DInputSAManager::RestoreRegisterListenerAndCallback()
for (const auto& listener : simEventListenerCache_) {
if (listener == nullptr) {
DHLOGE("simEventListenerCache_ is nullptr");
return ERR_DH_INPUT_CLIENT_REGISTER_FAIL;
return ERR_DH_INPUT_CLIENT_REGISTER_FAIL;
}
int32_t ret = DInputSAManager::GetInstance().dInputSourceProxy_->RegisterSimulationEventListener(listener);
if (ret != DH_SUCCESS) {
@@ -305,7 +305,7 @@ int32_t DInputSAManager::RestoreRegisterListenerAndCallback()
for (const auto& callback : sessionStateCbCache_) {
if (callback == nullptr) {
DHLOGE("sessionStateCbCache_ is nullptr");
return ERR_DH_INPUT_CLIENT_REGISTER_FAIL;
return ERR_DH_INPUT_CLIENT_REGISTER_FAIL;
}
int32_t ret = DInputSAManager::GetInstance().dInputSourceProxy_->RegisterSessionStateCb(callback);
if (ret != DH_SUCCESS) {