fix: focus listener

Signed-off-by: zhaolinglan <zhaolinglan@huawei.com>
This commit is contained in:
zhaolinglan 2023-04-26 11:01:05 +08:00
parent 8b346c2812
commit 03939dcb04
2 changed files with 3 additions and 3 deletions

View File

@ -29,7 +29,7 @@ void FocusChangedListener::OnUnfocused(const sptr<Rosen::FocusChangeInfo> &focus
IMSA_HILOGE("error nullptr");
return;
}
focusHandle_(focusChangeInfo->pid_, focusChangeInfo->pid_);
focusHandle_(focusChangeInfo->pid_, focusChangeInfo->uid_);
}
} // namespace MiscServices
} // namespace OHOS

View File

@ -94,8 +94,8 @@ int32_t PerUserSession::RemoveClient(const sptr<IRemoteObject> &client, bool isC
IMSA_HILOGD("start");
auto clientInfo = GetClientInfo(client);
if (clientInfo == nullptr) {
IMSA_HILOGE("client not found");
return ErrorCode::ERROR_CLIENT_NOT_FOUND;
IMSA_HILOGD("client not found");
return ErrorCode::NO_ERROR;
}
// if current client is removed, hide keyboard and clear channel
auto currentClient = GetCurrentClient();