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>
y: 264
onPressAndHold: currentId = applicationModel.id(newIndex = index)
onReleased: {
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) {
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!")
}
else {
console.warn("app cannot be launched!")
} else {
currentId = ''
}
} else {
currentId = ''
}
- homescreenHandler.tapShortcut(applicationModel.name(loc.index))
}
onPositionChanged: {
if (loc.currentId === '') return
}
onPositionChanged: {
if (loc.currentId === '') return