notify goforeground when launch show again

Signed-off-by: qianlf <qianliangfang@huawei.com>
Change-Id: Ie2e48fff7d2d8ad7022c8bd0bd8eee2eb7edfadc
This commit is contained in:
qianlf
2022-01-29 16:20:33 +08:00
parent 615713596f
commit f8265b814e
+5 -1
View File
@@ -423,7 +423,11 @@ WMError WindowImpl::Show()
if (state_ == WindowState::STATE_SHOWN && property_->GetWindowType() == WindowType::WINDOW_TYPE_WALLPAPER) {
WLOGFI("Minimize all app window");
WMError ret = SingletonContainer::Get<WindowAdapter>().MinimizeAllAppNodeAbility(property_->GetWindowId());
if (ret != WMError::WM_OK) {
if (ret == WMError::WM_OK || ret == WMError::WM_ERROR_DEATH_RECIPIENT) {
if (lifecycleListener_ != nullptr) {
lifecycleListener_->AfterForeground();
}
} else {
WLOGFE("Minimize all app errCode:%{public}d for winId:%{public}d",
static_cast<int32_t>(ret), property_->GetWindowId());
}