修复崩溃栈

Signed-off-by: zhouyongfei <zhouyongfei@huawei.com>
This commit is contained in:
zhouyongfei
2022-03-11 09:23:57 +08:00
parent b61148e532
commit 1d416b1e53
+6 -2
View File
@@ -1221,7 +1221,9 @@ namespace MiscServices {
sptr<InputClientProxy> client = new InputClientProxy(clientObject);
sptr<IInputClient> interface = client;
int remainClientNum = 0;
imsCore[0]->SetClientState(false);
if(imsCore[0] != nullptr) {
imsCore[0]->SetClientState(false);
}
HideKeyboard(client);
int ret = RemoveClient(client, remainClientNum);
if (ret != ErrorCode::NO_ERROR) {
@@ -1241,7 +1243,9 @@ namespace MiscServices {
MessageParcel *data = msg->msgContent_;
sptr<IRemoteObject> clientObject = data->ReadRemoteObject();
sptr<InputClientProxy> client = new InputClientProxy(clientObject);
imsCore[0]->SetClientState(true);
if(imsCore[0] != nullptr) {
imsCore[0]->SetClientState(true);
}
ShowKeyboard(client);
}