mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-23 14:49:59 +00:00
!1277 解决showkwyboard与showpanel卡死问题
Merge pull request !1277 from mashaoyin/master
This commit is contained in:
commit
bbe38b0151
@ -252,7 +252,9 @@ int32_t InputMethodAbility::StartInput(const InputClientInfo &clientInfo, bool i
|
||||
}
|
||||
isPendingShowKeyboard_ = clientInfo.isShowKeyboard;
|
||||
if (clientInfo.isShowKeyboard) {
|
||||
auto task = [this, cmdCount]() { ShowKeyboardImplWithLock(cmdCount); };
|
||||
auto task = [this, cmdCount]() {
|
||||
std::thread([this, cmdCount]() { ShowKeyboardImplWithLock(cmdCount); }).detach();
|
||||
};
|
||||
if (imeListener_ == nullptr || !imeListener_->PostTaskToEventHandler(task, "ShowKeyboard")) {
|
||||
IMSA_HILOGE("imeListener_ is nullptr, or post task failed!");
|
||||
ShowKeyboardImplWithoutLock(cmdCount);
|
||||
|
Loading…
Reference in New Issue
Block a user