Fix restart contition
authorChanggyu Choi <changyu.choi@samsung.com>
Mon, 23 Oct 2023 09:17:21 +0000 (18:17 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 2 Nov 2023 09:16:18 +0000 (18:16 +0900)
If autorestart option is true, the value is "1".

Change-Id: I83fc46ccf3f4a1d398621ebdc83ac1650f262289
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/lib/app_info/app_info_manager.cc

index c25a9e7560245297c53aded765d0a297f6585aa8..1ff9e97ba005c2ce7dc0a38b18f96fef7052bf3d 100644 (file)
@@ -306,7 +306,7 @@ void AppInfoManager::UnsetPackageBlocking(uid_t target_uid,
     info->SetStatus("installed");
     _D("%s status changed: 'installed'", info->GetAppId().c_str());
 
-    if (restart && status == "restart" && info->GetAutoRestart() == "restart")
+    if (restart && status == "restart" && info->GetAutoRestart() == "1")
       _launch_start_app_local(target_uid, info->GetAppId().c_str());
   }
 }