Fix restart contition 85/300385/1
authorChanggyu Choi <changyu.choi@samsung.com>
Mon, 23 Oct 2023 09:17:21 +0000 (18:17 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Mon, 23 Oct 2023 09:17:21 +0000 (18:17 +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 cac3825..10e1d00 100644 (file)
@@ -365,7 +365,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());
   }
 }