From d7a2c70b0a81bf50b15660258e0dbd167ad90b1c Mon Sep 17 00:00:00 2001 From: qianlf Date: Sat, 29 Jan 2022 16:20:33 +0800 Subject: [PATCH] fixed e784d43 from https://gitee.com/qianlf/windowmanager/pulls/194 notify goforeground when launch show again Signed-off-by: qianlf Change-Id: Ie2e48fff7d2d8ad7022c8bd0bd8eee2eb7edfadc --- wm/src/window_impl.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wm/src/window_impl.cpp b/wm/src/window_impl.cpp index fd07171253..0c084c168c 100644 --- a/wm/src/window_impl.cpp +++ b/wm/src/window_impl.cpp @@ -429,7 +429,9 @@ WMError WindowImpl::Show() if (state_ == STATE_SHOWN && property_->GetWindowType() == WindowType::WINDOW_TYPE_WALLPAPER) { WLOGFI("Minimize all app window"); WMError ret = SingletonContainer::Get().MinimizeAllAppNodeAbility(property_->GetWindowId()); - if (ret != WMError::WM_OK) { + if (ret == WMError::WM_OK || ret == WMError::WM_ERROR_DEATH_RECIPIENT) { + NotifyAfterForeground(); + } else { WLOGFE("Minimize all app errCode:%{public}d for winId:%{public}d", static_cast(ret), property_->GetWindowId()); } -- Gitee