From 7fcd3a372789e9cea7fbf2deb3beafc405f59190 Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Mon, 6 Aug 2018 12:09:11 +0900 Subject: Use appid between homescreen-service and apps Use appid between hss and apps, and check event destination in libhomescreen. So these is no need compare code when recived Event_TapShortcut Event. BUG-AGL: SPEC-1645 Change-Id: Iec2b369e4f88a2df7fdbcf7b8c69ab3adb0b236a Signed-off-by: zheng_wenlong --- src/aglextras/hmi/aglwmclient.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/aglextras/hmi/aglwmclient.cpp') diff --git a/src/aglextras/hmi/aglwmclient.cpp b/src/aglextras/hmi/aglwmclient.cpp index 3baf6c7..3789c51 100644 --- a/src/aglextras/hmi/aglwmclient.cpp +++ b/src/aglextras/hmi/aglwmclient.cpp @@ -158,14 +158,8 @@ AGLWmClient::AGLWmClient (const QString&, int port, QString) h_ptr->set_event_handler ( LibHomeScreen::Event_TapShortcut, [this](json_object* object) { - json_object *jo_app_name = nullptr; - if(json_object_object_get_ex(object, "application_name", &jo_app_name)) { - QString name(QLatin1String(json_object_get_string(jo_app_name))); - if(d_ptr->layout == name) { - qDebug("Surface %s got tapShortcut\n", qPrintable(name)); - activate_window(); - } - } + qDebug("Surface got tapShortcut!\n"); + activate_window(); } ); #endif // USE_AGL_HMI_LOWLEVEL_API -- cgit 1.2.3-korg