aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-06-05 17:39:23 +0800
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2019-06-05 17:39:23 +0800
commitd9b814bdd27ffea9aa66764c5079a18707c447a4 (patch)
tree8bcfb0349a0b97cf34b4da6d0ccb81981c1b4c5b
parentfacdefc2265bbd79daee3ad5270805de2a598d3b (diff)
sleep add
Change-Id: I868cf4c14b8fddd45af163ce37dc6a22db656f37
-rw-r--r--conf/hs-conf.json4
-rw-r--r--src/hs-vuiadapter.cpp5
2 files changed, 4 insertions, 5 deletions
diff --git a/conf/hs-conf.json b/conf/hs-conf.json
index 79087fb..8b2b6ab 100644
--- a/conf/hs-conf.json
+++ b/conf/hs-conf.json
@@ -13,10 +13,6 @@
"appid": "launcher",
"visibility": "visible",
"after": "homescreen"
- },
- {
- "appid": "restriction",
- "visibility": "invisible"
}
],
"default-lastmode": [
diff --git a/src/hs-vuiadapter.cpp b/src/hs-vuiadapter.cpp
index f71e6fd..6cb4f46 100644
--- a/src/hs-vuiadapter.cpp
+++ b/src/hs-vuiadapter.cpp
@@ -18,6 +18,7 @@
#include "hs-clientmanager.h"
#include "hs-proxy.h"
#include "hs-appinfo.h"
+#include "unistd.h"
/**
* event handler
@@ -190,6 +191,7 @@ void Vui_Navigation::notify(afb_api_t api, std::string appid)
if(isListenAppId(appid)) {
if (appid == _poi) {
m_start_flg.first = true;
+ sleep(1);
set_destination2poi(api);
}
else if(appid == _navigation) {
@@ -238,6 +240,7 @@ void Vui_Navigation::set_destination2poi(afb_api_t api)
void Vui_Navigation::start_navigation(afb_api_t api)
{
HS_ClientManager::instance()->pushEvent(_startNavigation, nullptr);
+ HS_ClientManager::instance()->pushEvent("showWindow", nullptr, _navigation);
}
/* -------------------------------------HS_VuiAdapter------------------------------------------ */
@@ -302,4 +305,4 @@ int HS_VuiAdapter::onEvent(afb_api_t api, const char *event, struct json_object
return 1;
}
return 0;
-} \ No newline at end of file
+}