log("Deleting preferences: from list %s: %s\n", key, item);
newItems.remove(item);
}
mainpref.putCollection(entry.getKey(), newItems);
} else if (entry.getValue() instanceof ListListSetting) {
ListListSetting llSetting = (ListListSetting) entry.getValue();
Collection<Collection<String>> newLists = getArray(mainpref, key, true);
if (newLists == null) continue;
// if items are found in one of lists, remove that list!
Iterator<Collection<String>> listIterator = newLists.iterator();
while (listIterator.hasNext()) {
Collection<String> list = listIterator.next();
for (Collection<String> removeList : llSetting.getValue()) {
if (list.containsAll(removeList)) {
// remove current list, because it matches search criteria
log("Deleting preferences: list from lists %s: %s\n", key, list);
listIterator.remove();
}