private void updatePaid() { for (int i = 0; i < cost.getIntervals().get(selectedCost).paid.size(); i++) { Log.d("TEST", "onCardViewTouch: "); if (selected .getFacebookID() .equals(cost.getIntervals().get(selectedCost).paid.get(i).first)) { cost.getIntervals().get(selectedCost).setPaid(i, true); } } ArrayList<Cost> costs = house.getCost(); costs.set(costLocation, cost); house.setCosts(costs); updateItemBG(house); }