mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-27 00:41:04 +00:00
!1545 修改创建panel时获取SCB使能状态
Merge pull request !1545 from mashaoyin/master
This commit is contained in:
commit
ae3e9fedee
@ -71,20 +71,18 @@ int32_t InputMethodPanel::CreatePanel(const std::shared_ptr<AbilityRuntime::Cont
|
||||
IMSA_HILOGE("create window failed: %{public}d!", wmError);
|
||||
return ErrorCode::ERROR_OPERATE_PANEL;
|
||||
}
|
||||
isScbEnable_ = Rosen::SceneBoardJudgement::IsSceneBoardEnabled();
|
||||
if (SetPanelProperties() != ErrorCode::NO_ERROR) {
|
||||
wmError = window_->Destroy();
|
||||
IMSA_HILOGI("destroy window end, wmError is %{public}d.", wmError);
|
||||
return ErrorCode::ERROR_OPERATE_PANEL;
|
||||
}
|
||||
windowId_ = window_->GetWindowId();
|
||||
IMSA_HILOGI("success, type/flag/windowId: %{public}d/%{public}d/%{public}u.", static_cast<int32_t>(panelType_),
|
||||
static_cast<int32_t>(panelFlag_), windowId_);
|
||||
if (panelInfo.panelType == SOFT_KEYBOARD) {
|
||||
isScbEnable_ = Rosen::SceneBoardJudgement::IsSceneBoardEnabled();
|
||||
if (isScbEnable_) {
|
||||
IMSA_HILOGI("success, type/flag/windowId/isScbEnable_: %{public}d/%{public}d/%{public}u/%{public}d.",
|
||||
static_cast<int32_t>(panelType_), static_cast<int32_t>(panelFlag_), windowId_, isScbEnable_);
|
||||
if (panelInfo.panelType == SOFT_KEYBOARD && isScbEnable_) {
|
||||
RegisterKeyboardPanelInfoChangeListener();
|
||||
}
|
||||
}
|
||||
return ErrorCode::NO_ERROR;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user