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

Bug des ingrédients

parent 0d756864
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ import java.util.ArrayList;
*/
public class IngredientArrayAdapter extends ArrayAdapter<IngredientItem> {
//Liste des ingrédients
ArrayList<IngredientItem> items;
public ArrayList<IngredientItem> items;
Modes mode; //Différents mode : QuantiteSimple, AvecCheckList, AvecBecs. Cela permet d'avoir différente manière d'afficher un ingrédient
Context context;
......@@ -142,6 +142,7 @@ public class IngredientArrayAdapter extends ArrayAdapter<IngredientItem> {
q-=1;
if (q>=0){
holder.quantity.setText(""+q);
currentIngredient.quantity = q;
}
}
});
......@@ -152,6 +153,7 @@ public class IngredientArrayAdapter extends ArrayAdapter<IngredientItem> {
int q = Integer.parseInt(holder.quantity.getText().toString());
q+=1;
holder.quantity.setText(""+q);
currentIngredient.quantity = q;
}
});
holder.layoutBec.setVisibility(View.GONE);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment