}
}
- public void prepareAutoAdd() {
+ public void prepareAutoUpdate() {
for (int i = 0; i < listeners.size(); i++) {
- listeners.get(i).prepareAutoAdd();
+ listeners.get(i).prepareAutoUpdate();
}
}
public void onRemove(ShortcutInfo item);
public void onTitleChanged(CharSequence title);
public void onItemsChanged(boolean animate);
- public void prepareAutoAdd();
+ public void prepareAutoUpdate();
}
public boolean hasOption(int optionFlag) {
// The item may belong to a folder.
View parent = idToViewMap.get(itemToRemove.container);
if (parent != null) {
- ((FolderInfo) parent.getTag()).remove((ShortcutInfo) itemToRemove, false);
+ FolderInfo folderInfo = (FolderInfo) parent.getTag();
+ folderInfo.prepareAutoUpdate();
+ folderInfo.remove((ShortcutInfo) itemToRemove, false);
}
}
}