Modify noti message 86/312086/2
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 4 Jun 2024 06:15:57 +0000 (15:15 +0900)
committerHwanKyu Jhun <h.jhun@samsung.com>
Tue, 4 Jun 2024 08:41:38 +0000 (08:41 +0000)
The argument is added to notify that the status is updated forcedly.

Change-Id: I71e212046be86e2d493d2fd33d30baacd141a7d0
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/api/amd_api_noti_msg.h
src/lib/app_status/app_status_manager.cc

index b77ddce2f531c42bb2975108851842425ade3a6c..0ba86228df47734dbb4f1d83e937c2ee40d93235 100644 (file)
@@ -171,6 +171,7 @@ extern "C" {
 /**
  * @brief Definition for the notification message: The status information will be updated.
  * @details Input: arg1(int) The status.\n
+ *          Input: arg2(bool) If flag is true, the status is updated forcedly.\n (Since Tizen 9.0)
  *          Input: arg3(amd_app_status_h) The app status handle.\n
  * @since_tizen 5.5
  *
index cd63eb0141f11f3f83ac3344d977c86767081637..99b836a0f0e23e8fb9d4bb3f5d4e20fef140d514 100644 (file)
@@ -857,7 +857,7 @@ int AppStatusManager::Remove(AppStatusPtr app_status) {
 int AppStatusManager::Update(const AppStatusPtr& app_status, int status,
     bool force, bool update_group_info) {
   _D("pid: %d, status: %d", app_status->GetPID(), app_status->GetStatus());
-  _noti_send(AMD_NOTI_MSG_APP_STATUS_UPDATE_STATUS_START, status, 0,
+  _noti_send(AMD_NOTI_MSG_APP_STATUS_UPDATE_STATUS_START, status, force,
       app_status.get(), nullptr);
   if (app_status->GetStatus() == STATUS_DYING) {
     _E("%s is STATUS_DYING", app_status->GetAppID().c_str());