From: Changgyu Choi Date: Mon, 23 Oct 2023 09:17:21 +0000 (+0900) Subject: Fix restart contition X-Git-Tag: accepted/tizen/unified/20231024.112158~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eff8f91cbc46d670f274a19d0d3411b4dd4b1ff0;p=platform%2Fcore%2Fappfw%2Famd.git Fix restart contition If autorestart option is true, the value is "1". Change-Id: I83fc46ccf3f4a1d398621ebdc83ac1650f262289 Signed-off-by: Changgyu Choi --- diff --git a/src/lib/app_info/app_info_manager.cc b/src/lib/app_info/app_info_manager.cc index cac3825f..10e1d00d 100644 --- a/src/lib/app_info/app_info_manager.cc +++ b/src/lib/app_info/app_info_manager.cc @@ -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()); } }