fix,consider only launchers for inCurrentActivity

work/spdx
Michail Vourlakos 4 years ago
parent c922aec8a5
commit 7811e4830b

@ -97,7 +97,7 @@ Item {
}
function hasLauncher(url) {
return _launchers.tasksModel.launcherPosition(url) != -1;
return _launchers.tasksModel.launcherPosition(url) >= 0;
}
function addLauncher(launcherUrl) {
@ -209,6 +209,10 @@ Item {
}
function inCurrentActivity(launcherUrl) {
if (!hasLauncher(launcherUrl)) {
return false;
}
var activities = _launchers.tasksModel.launcherActivities(launcherUrl);
if (activities.length ===0

Loading…
Cancel
Save