diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/hs-vuiadapter.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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 +} |