sleep add
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Wed, 5 Jun 2019 09:39:23 +0000 (17:39 +0800)
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Wed, 5 Jun 2019 09:39:23 +0000 (17:39 +0800)
Change-Id: I868cf4c14b8fddd45af163ce37dc6a22db656f37

conf/hs-conf.json
src/hs-vuiadapter.cpp

index 79087fb..8b2b6ab 100644 (file)
                                "appid": "launcher",
                                "visibility": "visible",
                                "after": "homescreen"
-                       },
-                       {
-                               "appid": "restriction",
-                               "visibility": "invisible"
                        }
                ],
                "default-lastmode": [
index f71e6fd..6cb4f46 100644 (file)
@@ -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
+}