mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-23 22:59:45 +00:00
modify some code
Signed-off-by: zhaolinglan <zhaolinglan@huawei.com>
This commit is contained in:
parent
6f9d49c1da
commit
46d9c767fc
@ -164,7 +164,7 @@ namespace MiscServices {
|
||||
int AddClient(int pid, int uid, int displayId, const sptr<IInputClient>& inputClient,
|
||||
const sptr<IInputDataChannel>& channel,
|
||||
const InputAttribute& attribute);
|
||||
int RemoveClient(const sptr<IRemoteObject>& inputClient);
|
||||
int RemoveClient(IRemoteObject *inputClient);
|
||||
int StartInputMethod(int index);
|
||||
int StopInputMethod(int index);
|
||||
int ShowKeyboard(const sptr<IInputClient>& inputClient, bool isShowKeyboard);
|
||||
|
@ -379,7 +379,7 @@ namespace MiscServices {
|
||||
\return ErrorCode::NO_ERROR no error
|
||||
\return ErrorCode::ERROR_CLIENT_NOT_FOUND client is not found
|
||||
*/
|
||||
int PerUserSession::RemoveClient(const sptr<IRemoteObject> &inputClient)
|
||||
int PerUserSession::RemoveClient(IRemoteObject *inputClient)
|
||||
{
|
||||
IMSA_HILOGE("PerUserSession::RemoveClient");
|
||||
auto it = mapClients.find(inputClient);
|
||||
@ -1203,7 +1203,7 @@ namespace MiscServices {
|
||||
imsCore[0]->SetClientState(false);
|
||||
}
|
||||
HideKeyboard(client);
|
||||
int ret = RemoveClient(clientObject);
|
||||
int ret = RemoveClient(clientObject.GetRefPtr());
|
||||
if (ret != ErrorCode::NO_ERROR) {
|
||||
IMSA_HILOGE("PerUserSession::OnReleaseInput Aborted! Failed to RemoveClient [%{public}d]\n", userId_);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user