private void setupData() { Bundle extras = this.getActivity().getIntent().getBundleExtra("extra"); house = extras.getParcelable("house"); int costLocation = extras.getInt("cost"); int selectedLoc = extras.getInt("selected"); current = extras.getParcelable("account"); cost = house.getCost().get(costLocation); selected = house.getMembers().get(selectedLoc); this.costLocation = costLocation; initLibrary(); }
private void setupData() { Bundle b = getIntent().getBundleExtra("extra"); house = b.getParcelable("house"); int costLocation = b.getInt("cost"); current = b.getParcelable("account"); cost = house.getCost().get(costLocation); }
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); }