From 63e7ab867c75ac550b923815955e6dae3f0da984 Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Tue, 19 Jun 2018 15:05:20 +0900 Subject: Delete launcher icon area from HomeScreen Delete Home QML file from main.qml. Change Home shortcut icon to launcher. Change-Id: Id1b3ffbbd24ee587a1d3bab1f86c90809bfc1209 Task-AGL: SPEC-1518 Signed-off-by: zheng_wenlong --- homescreen/qml/ShortcutArea.qml | 26 +++++++------------------- 1 file changed, 7 insertions(+), 19 deletions(-) (limited to 'homescreen/qml/ShortcutArea.qml') diff --git a/homescreen/qml/ShortcutArea.qml b/homescreen/qml/ShortcutArea.qml index 150658c..e0c9182 100644 --- a/homescreen/qml/ShortcutArea.qml +++ b/homescreen/qml/ShortcutArea.qml @@ -28,8 +28,8 @@ Item { ListModel { id: applicationModel ListElement { - name: 'Home' - application: '' + name: 'launcher' + application: 'launcher@0.1' } ListElement { name: 'MediaPlayer' @@ -58,27 +58,15 @@ Item { name: model.name active: model.name === launcher.current onClicked: { - if (0 === model.index) { - appLauncherAreaLauncher.visible = true - applicationArea.visible = false - launcher.current = 'Home' + pid = launcher.launch(model.application) + if (1 < pid) { + applicationArea.visible = true } else { - pid = launcher.launch(model.application) - if (1 < pid) { - applicationArea.visible = true - appLauncherAreaLauncher.visible = false - } - else { - console.warn(model.application) - console.warn("app cannot be launched!") - } + console.warn(model.application) + console.warn("app cannot be launched!") } homescreenHandler.tapShortcut(model.name) - if(model.name == 'Home') - { - layoutHandler.activateSurface('HomeScreen'); - } } } } -- cgit 1.2.3-korg