Skip to content
Snippets Groups Projects
Commit fc57fddb authored by MAUGEZ Emeline's avatar MAUGEZ Emeline
Browse files

Erreur solved

parent 00f077ed
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,6 @@ public class IngredientArrayAdapter extends ArrayAdapter<IngredientItem> {
ViewGroup parent) {
IngredientItem currentIngredient = items.get(position);
ViewHolder holder;
if(convertView == null) {
convertView = ((Activity)context).getLayoutInflater()
.inflate(R.layout.ingredient_item, null, false);
......@@ -98,10 +97,6 @@ public class IngredientArrayAdapter extends ArrayAdapter<IngredientItem> {
convertView.setTag(holder);
}else {
// On récupère le viewholder pour avoir un accès rapide à toutes les références
holder = (ViewHolder) convertView.getTag();
}
holder.checkPresent.setVisibility(View.GONE);
holder.checkPresent.setChecked(currentIngredient.present);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment