summaryrefslogtreecommitdiffstats
path: root/launcher/src/main.cpp
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-08-06 12:05:59 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2018-08-06 12:06:32 +0900
commit5fbb59e80e4f870a1badd694d2efcd8cd941cdfb (patch)
tree5e0edd6c22ce8f2d49aa2e571a06b6961a2b7f24 /launcher/src/main.cpp
parente1877c0c7c2add1dba21e64394ba06365c796edd (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: I02a87f289c6da0a86012fd304fb1f2d2452ee990 Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
Diffstat (limited to 'launcher/src/main.cpp')
-rw-r--r--launcher/src/main.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/launcher/src/main.cpp b/launcher/src/main.cpp
index 91a1d80..5720203 100644
--- a/launcher/src/main.cpp
+++ b/launcher/src/main.cpp
@@ -124,16 +124,8 @@ int main(int argc, char *argv[])
homescreenHandler->init(port, token.toStdString().c_str());
homescreenHandler->set_event_handler(QLibHomeScreen::Event_TapShortcut, [layoutHandler, myname](json_object *object){
- json_object *appnameJ = nullptr;
- if(json_object_object_get_ex(object, "application_name", &appnameJ))
- {
- const char *appname = json_object_get_string(appnameJ);
- if(myname == appname)
- {
- qDebug("Surface %s got tapShortcut\n", appname);
- layoutHandler->activateSurface(myname);
- }
- }
+ qDebug("Surface %s got tapShortcut\n", myname.toStdString().c_str());
+ layoutHandler->activateSurface(myname);
});
QUrl bindingAddress;