提供销毁应用后返回到拉起方任务接口

Signed-off-by: hubijie <hubijie@huawei.com>
This commit is contained in:
hubijie 2024-07-25 09:16:05 +08:00
parent e967bcff1c
commit e235a2a3c6
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ public:
MOCK_METHOD1(ClearMainSessions, WMError(const std::vector<int32_t>& persistentIds));
MOCK_METHOD2(ClearMainSessions, WMError(const std::vector<int32_t>& persistentIds,
std::vector<int32_t>& clearFailedIds));
MOCK_METHOD1(TerminateSessionByPersistentId, WMError(int32_t persistentIds));
MOCK_METHOD1(TerminateSessionByPersistentId, WMError(int32_t persistentId));
};
}
} // namespace OHOS

View File

@ -1375,7 +1375,7 @@ void Session::SetUpdateSessionIconListener(const NofitySessionIconUpdatedFunc &f
WSError Session::Clear(bool needStartCaller)
{
TLOGI(WmsLogTag::WMS_LIFE, "id: %{public}d, needStartCaller:%{public}u", GetPersistentId(), needStartCaller);
TLOGI(WmsLogTag::WMS_LIFE, "id:%{public}d, needStartCaller:%{public}u", GetPersistentId(), needStartCaller);
auto task = [this, needStartCaller]() {
isTerminating = true;
SessionInfo info = GetSessionInfo();