aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2018-10-13 16:56:30 +0800
committerwang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>2018-10-13 17:00:12 +0800
commit471a8288f833334e38f3d999c8921c8585280dc9 (patch)
tree0e359c66d03f659200e7437697be3b4f26ea89a1
parent9430d170c235ff75268db06d1ba32692dea0a65f (diff)
fix issue,call tap_shortcut carelessly
the scenes as below not call tap_shortcut 1)when touch blank 2)long press or move icon Change-Id: I13f2d1833af323da19ce2521cd2be6188fe1bb7a Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
-rw-r--r--launcher/qml/Launcher.qml5
1 files changed, 4 insertions, 1 deletions
diff --git a/launcher/qml/Launcher.qml b/launcher/qml/Launcher.qml
index 31b1f3d..6d55271 100644
--- a/launcher/qml/Launcher.qml
+++ b/launcher/qml/Launcher.qml
@@ -69,9 +69,13 @@ ApplicationWindow {
y: 264
onPressAndHold: currentId = applicationModel.id(newIndex = index)
onReleased: {
+ if(loc.index < 0) {
+ return
+ }
if (currentId === '') {
pid = launcher.launch(applicationModel.id(loc.index))
if (1 < pid) {
+ homescreenHandler.tapShortcut(applicationModel.name(loc.index))
}
else {
console.warn("app cannot be launched!")
@@ -79,7 +83,6 @@ ApplicationWindow {
} else {
currentId = ''
}
- homescreenHandler.tapShortcut(applicationModel.name(loc.index))
}
onPositionChanged: {
if (loc.currentId === '') return