mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2024-11-27 08:51:48 +00:00
!1199 当销毁输入法窗口时,窗口侧返回WM_ERROR_NULLPTR时,不返回错误
Merge pull request !1199 from guojin31/master
This commit is contained in:
commit
ca6d27b7ee
@ -127,7 +127,8 @@ int32_t InputMethodPanel::DestroyPanel()
|
||||
}
|
||||
auto result = window_->Destroy();
|
||||
IMSA_HILOGI("ret = %{public}d", result);
|
||||
return result == WMError::WM_OK ? ErrorCode::NO_ERROR : ErrorCode::ERROR_OPERATE_PANEL;
|
||||
return (result == WMError::WM_OK || result == WMError::WM_ERROR_NULLPTR) ? ErrorCode::NO_ERROR
|
||||
: ErrorCode::ERROR_OPERATE_PANEL;
|
||||
}
|
||||
|
||||
int32_t InputMethodPanel::Resize(uint32_t width, uint32_t height)
|
||||
|
Loading…
Reference in New Issue
Block a user