X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=sample%2Fsimple-egl%2Fsrc%2Fsimple-egl.cpp;h=4271a66139e9e7105a57e4c714a9e66f3fc08000;hb=43452ff8a759da135525678528c159f1e4e68504;hp=799729b165a8c25536b37f13baac8c3b8c06fd55;hpb=8bf11a8668902565b0e9a23e320777f5fb611848;p=src%2Flibhomescreen.git diff --git a/sample/simple-egl/src/simple-egl.cpp b/sample/simple-egl/src/simple-egl.cpp index 799729b..4271a66 100644 --- a/sample/simple-egl/src/simple-egl.cpp +++ b/sample/simple-egl/src/simple-egl.cpp @@ -570,14 +570,8 @@ init_hs(LibHomeScreen* hs){ } hs->set_event_handler(LibHomeScreen::Event_TapShortcut, [](json_object *object){ - const char *application_name = json_object_get_string( - json_object_object_get(object, "application_name")); - HMI_DEBUG("simple-egl","Event_TapShortcut application_name = %s ", application_name); - if(strcmp(application_name, app_name.c_str()) == 0) - { - HMI_DEBUG("simple-egl","try to activesurface %s ", app_name.c_str()); - wm->activateWindow(main_role); - } + HMI_DEBUG("simple-egl","try to activesurface %s ", app_name.c_str()); + wm->activateWindow(main_role); }); return 0;