mirror of
https://github.com/openharmony/windowmanager.git
synced 2026-07-21 04:25:28 -04:00
notify goforeground when launch show again
Signed-off-by: qianlf <qianliangfang@huawei.com> Change-Id: Ie2e48fff7d2d8ad7022c8bd0bd8eee2eb7edfadc
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user