Closed OZ10 closed 8 years ago
Ingredients can now be deleted from recipes. There is a bug where the ingredient will still be deleted even if the user cancels the recipe edit.
This can be fixed by removing the line of code that deletes the recipe's ingredient from the database. The recipe's ingredient only needs to be removed from the adapter's list of ingredient. This will remove the ingredient from the view. When the recipe is saved all of it's ingredients are removed and re-added based on the adapter's list.
Fixed as per comment above
Each ingredient should have a delete button