Code Review
/
apps
/
agl-service-homescreen.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
send showWindow event when app start over
[apps/agl-service-homescreen.git]
/
src
/
hs-apprecover.cpp
diff --git
a/src/hs-apprecover.cpp
b/src/hs-apprecover.cpp
index
cedf751
..
5ccd039
100644
(file)
--- 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
* - 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()) {
if(m_recovering_set.empty()) {
- return;
+ return
ret
;
}
auto it = m_recovering_set.find(appid);
}
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);
}
&& ip->second.visibility) {
HS_ClientManager::instance()->pushEvent("showWindow", nullptr, appid);
}
+ ret = true;
}
}
+ return ret;
}
/**
}
/**