diff options
author | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-08-06 12:09:11 +0900 |
---|---|---|
committer | zheng_wenlong <wenlong_zheng@nexty-ele.com> | 2018-08-06 12:09:47 +0900 |
commit | 7fcd3a372789e9cea7fbf2deb3beafc405f59190 (patch) | |
tree | 98ce231c27aacea8dbdf0cbafc5509afe2a0eb35 | |
parent | d02981a5b4229a045e382b61b4fa2a2fc337963b (diff) |
Use appid between homescreen-service and appsflounder_5.99.3flounder/5.99.35.99.3
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 <wenlong_zheng@nexty-ele.com>
-rw-r--r-- | src/aglextras/hmi/aglwmclient.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
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 |