@Override public void onManagerFinishUpdate(ArrayList<Item> items, Manager manager) { ArrayList<Item> commics = new ArrayList<Item>(items.size()); for (Item item : items) if (item.getCategories().contains("Tirinhas") == true) commics.add(item); databaseHelper.saveCommics(commics); if (listener != null) listener.onFinishUpdate(this); }
@Override public void onManagerFailUpdate(Exception e, Manager manager) { if (listener != null) listener.onFailUpdate(e, this); }