mirror of
https://gitee.com/openharmony/window_window_manager
synced 2024-11-30 10:31:17 +00:00
提供销毁应用后返回到拉起方任务接口
Signed-off-by: hubijie <hubijie@huawei.com>
This commit is contained in:
parent
f708d92760
commit
19abd03339
@ -9464,6 +9464,10 @@ WMError SceneSessionManager::TerminateSessionByPersistentId(int32_t persistentId
|
||||
TLOGE(WmsLogTag::WMS_LIFE, "Session id:%{public}d is not found.", persistentId);
|
||||
return WMError::WM_ERROR_INVALID_PARAM;
|
||||
}
|
||||
if (!WindowHelper::IsMainWindow(sceneSession->GetWindowType())) {
|
||||
TLOGE(WmsLogTag::WMS_MAIN, "Session id:%{public}d is not mainWindow.", persistentId);
|
||||
return WMError::WM_ERROR_INVALID_PERMISSION;
|
||||
}
|
||||
sceneSession->Clear(true);
|
||||
TLOGI(WmsLogTag::WMS_LIFE, "Terminate success, id:%{public}d.", persistentId);
|
||||
return WMError::WM_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user