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>
hs->set_event_handler(LibHomeScreen::Event_ShowWindow, [hs](json_object *object){
HMI_DEBUG("simple-egl","try to activeWindow %s ", app_name.c_str());
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(
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)
// 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);
});
else
wm->activateWindow(main_role, area);
});