summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2018-10-30 17:17:30 +0800
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2018-10-30 17:18:11 +0800
commit72bb964fb8e5f5148e365cd46b88ca24d99c3b2e (patch)
treec0b9a79c89376abcd0a14d5d518a463e1163bd8b
parent7c61d70c8f9630133038a8cfef7a0511b1555037 (diff)
delete application_name check in tap_shortcut event
because of now homescreen-service emit event to one application, delete the applciation_name check. Bug-AGL: SPEC-1764 Change-Id: I5ab55ec82fd110fa47b58d59dabb263881bf3d19 Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
-rw-r--r--src/aglextras/hmi/aglwmclient.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/aglextras/hmi/aglwmclient.cpp b/src/aglextras/hmi/aglwmclient.cpp
index 3baf6c7..5c79832 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