Signed-off-by: ma-shaoyin <mashaoyin1@huawei.com>

Changes to be committed:
This commit is contained in:
ma-shaoyin 2024-06-19 20:45:21 +08:00
parent 81b08f14f0
commit e9536dc502

View File

@ -249,7 +249,7 @@ int32_t InputMethodAbility::StartInput(const InputClientInfo &clientInfo, bool i
return ret;
}
isPendingShowKeyboard_ = clientInfo.isShowKeyboard;
auto task = []() { ShowKeyboard(); };
auto task = [this]() { ShowKeyboard(); };
if (imeListener_ == nullptr || !imeListener_->PostTaskToEventHandler(task, "ShowKeyboard")) {
IMSA_HILOGE("imeListener_ is nullptr, or post task failed!");
ShowKeyboard();