fix simple-egl compile error 26/21326/3 halibut 7.99.1 7.99.2 7.99.3 8.0.0 8.0.1 8.0.2 8.0.3 8.0.4 8.0.5 8.0.6 8.99.1 8.99.2 8.99.3 halibut/7.99.1 halibut/7.99.2 halibut/7.99.3 halibut/8.0.0 halibut/8.0.1 halibut/8.0.2 halibut/8.0.3 halibut/8.0.4 halibut/8.0.5 halibut/8.0.6 halibut_7.99.1 halibut_7.99.2 halibut_7.99.3 halibut_8.0.0 halibut_8.0.1 halibut_8.0.2 halibut_8.0.3 halibut_8.0.4 halibut_8.0.5 halibut_8.0.6 icefish/8.99.1 icefish/8.99.2 icefish/8.99.3 icefish_8.99.1 icefish_8.99.2 icefish_8.99.3
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Thu, 16 May 2019 08:47:58 +0000 (16:47 +0800)
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
Mon, 20 May 2019 00:48:54 +0000 (08:48 +0800)
Because constant key values which defined in libhomescreen.hpp was deleted,
so no longer use these key word in simple-egl.

related: https://gerrit.automotivelinux.org/gerrit/#/c/20215/
Bug-AGL: SPEC-2188

Change-Id: I89d3ef0fb2e8ed02ec86a14b0368ca946cdf6d49
Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
sample/simple-egl/src/simple-egl.cpp

index aa6ea19..58d8ba4 100644 (file)
@@ -572,12 +572,12 @@ init_hs(LibHomeScreen* hs){
        hs->set_event_handler(LibHomeScreen::Event_ShowWindow, [hs](json_object *object){
                HMI_DEBUG("simple-egl","try to activeWindow %s ", app_name.c_str());
 
-               struct json_object *param_obj = json_object_object_get(object, hs->_keyParameter);
+               struct json_object *param_obj = json_object_object_get(object, "parameter");
                const char *area = json_object_get_string(
-                       json_object_object_get(param_obj, hs->_keyArea));
+                       json_object_object_get(param_obj, "area"));
                // Application should call LibWindowmanager::activateWindow() in showWindow handler
                if(area == nullptr)
-                       wm->activateWindow(main_role, hs->_areaNormal);
+                       wm->activateWindow(main_role, "normal.full");
                else
                        wm->activateWindow(main_role, area);
        });