if (!visibili.contains("" + launcherElementList.get(i).getId())) {
removeSet.add(launcherElementList.get(i));
}
}
launcherElementList.removeAll(removeSet);
<BUG>recomputeOrder();</BUG>
}
public LauncherElement addElement(LauncherElement lau) throws SoulissModelException {
launcherElementList.add(lau);
recomputeOrder();
long id = createLauncherElement(lau);
<BUG>lau.setId(id);
Set<String> visibili = preferences.getStringSet("launcher_elems", new HashSet<String>());</BUG>
visibili.add("" + lau.getId());

if (!visibili.contains("" + launcherElementList.get(i).getId())) {
removeSet.add(launcherElementList.get(i));
}
}
launcherElementList.removeAll(removeSet);
}
public LauncherElement addElement(LauncherElement lau) throws SoulissModelException {
launcherElementList.add(lau);
recomputeOrder();
long id = createLauncherElement(lau);
lau.setId(id);
SharedPreferences preferences = PreferenceManager.getDefaultSharedPreferences(context);
Set<String> visibili = preferences.getStringSet("launcher_elems", new HashSet<String>());
visibili.add("" + lau.getId());
