From 85355e614ebb90ac009204c243ce43ffed802e95 Mon Sep 17 00:00:00 2001 From: sodanotgreen Date: Tue, 28 May 2024 12:17:16 +0800 Subject: [PATCH] fix Signed-off-by: sodanotgreen --- services/appmgr/include/app_mgr_service_inner.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/services/appmgr/include/app_mgr_service_inner.h b/services/appmgr/include/app_mgr_service_inner.h index ac3d1c6b69..5a445d2b75 100644 --- a/services/appmgr/include/app_mgr_service_inner.h +++ b/services/appmgr/include/app_mgr_service_inner.h @@ -1210,7 +1210,8 @@ private: * * @return ERR_OK, return back success, others fail. */ - int32_t KillApplicationByUserIdLocked(const std::string &bundleName, const int userId); + int32_t KillApplicationByUserIdLocked( + const std::string &bundleName, const int userId, const bool clearPageStack = true); /** * WaitForRemoteProcessExit, Wait for the process to exit normally. @@ -1342,7 +1343,8 @@ private: bool CheckGetRunningInfoPermission() const; - int32_t KillApplicationByBundleName(const std::string &bundleName); + int32_t KillApplicationByBundleName( + const std::string &bundleName, const bool clearPageStack = true); bool SendProcessStartEvent(const std::shared_ptr &appRecord);