消除代码差异

Signed-off-by: zhangsaiyang <zhangsaiyang@huawei.com>
This commit is contained in:
zhangsaiyang 2024-09-03 14:35:22 +08:00
parent 4d1abf7617
commit 1a9833f430
2 changed files with 0 additions and 8 deletions

View File

@ -171,8 +171,6 @@ private:
double positionY_ = 0;
double height_ = 0;
bool isPendingShowKeyboard_ = false;
std::mutex defaultImeCheckMutex_;
bool isDefaultIme_ = false;
std::mutex inputAttrLock_;

View File

@ -223,7 +223,6 @@ int32_t InputMethodAbility::StartInput(const InputClientInfo &clientInfo, bool i
auto showPanel = [&, needShow = clientInfo.isShowKeyboard] {
if (needShow) {
isPendingShowKeyboard_ = clientInfo.isShowKeyboard;
ShowKeyboardImplWithoutLock(cmdId_);
}
};
@ -810,11 +809,6 @@ int32_t InputMethodAbility::CreatePanel(const std::shared_ptr<AbilityRuntime::Co
inputMethodPanel = nullptr;
return false;
});
// Called when creating the input method first time, if the CreatePanel is called later than the ShowKeyboard.
if (panelInfo.panelType == SOFT_KEYBOARD && isPendingShowKeyboard_) {
ShowKeyboard();
isPendingShowKeyboard_ = false;
}
return flag ? ErrorCode::NO_ERROR : ErrorCode::ERROR_OPERATE_PANEL;
}