X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fhs-apprecover.cpp;fp=src%2Fhs-apprecover.cpp;h=5ccd039893b700408b8c40e267a2b94d6fd6808f;hb=4cb1ba39335aa2a2d2e08481acd72a3682adaefe;hp=cedf7510e5b497b80b77fe14e2ab7d09226dce7f;hpb=95c8f8ac2526acc5f7467704532ea235532b1876;p=apps%2Fagl-service-homescreen.git diff --git a/src/hs-apprecover.cpp b/src/hs-apprecover.cpp index cedf751..5ccd039 100644 --- a/src/hs-apprecover.cpp +++ b/src/hs-apprecover.cpp @@ -115,13 +115,15 @@ void HS_AppRecover::startRecovery(afb_api_t api, recover_map &map) * - appid : application id liked "dashboard" * * #### Return - * None + * false : not recover app + * true : recover app * */ -void HS_AppRecover::registerRecoveredApp(const std::string &appid) +bool HS_AppRecover::registerRecoveredApp(const std::string &appid) { + bool ret = false; if(m_recovering_set.empty()) { - return; + return ret; } auto it = m_recovering_set.find(appid); @@ -132,7 +134,9 @@ void HS_AppRecover::registerRecoveredApp(const std::string &appid) && ip->second.visibility) { HS_ClientManager::instance()->pushEvent("showWindow", nullptr, appid); } + ret = true; } + return ret; } /**