From b011c6a8e42ad6cb09055f0e3ef09ab0552f8199 Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Fri, 3 Aug 2018 18:33:58 +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 Signed-off-by: zheng_wenlong --- homescreen/qml/ShortcutArea.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'homescreen/qml/ShortcutArea.qml') diff --git a/homescreen/qml/ShortcutArea.qml b/homescreen/qml/ShortcutArea.qml index e0c9182..d7e97f0 100644 --- a/homescreen/qml/ShortcutArea.qml +++ b/homescreen/qml/ShortcutArea.qml @@ -28,18 +28,22 @@ Item { ListModel { id: applicationModel ListElement { + appid: 'launcher' name: 'launcher' application: 'launcher@0.1' } ListElement { + appid: 'mediaplayer' name: 'MediaPlayer' application: 'mediaplayer@0.1' } ListElement { + appid: 'hvac' name: 'HVAC' application: 'hvac@0.1' } ListElement { + appid: 'navigation' name: 'Navigation' application: 'navigation@0.1' } @@ -66,7 +70,7 @@ Item { console.warn(model.application) console.warn("app cannot be launched!") } - homescreenHandler.tapShortcut(model.name) + homescreenHandler.tapShortcut(model.appid) } } } -- cgit 1.2.3-korg