The "Cancel" button doesn't actually exit the activity. It creates another SpeciesListActivity on top of the stack.
Same issue with delete but more serious. Try deleting a plant then click back button. It brings back the ViewSpeciesActivity again with the deleted plant. Attempting to add it to garden or edit info will crash the app.
Similar issue with the garden view. When user adds a plant by clicking "add to garden" in ViewSpeciesActivity, then click "view species list" or "view species" in the garden view... it gets very weird, try that and you'll know.
This issue is because the back button doesn't recreate the activity, but rather loads a cached version from ram. This can cause problems when making changes to the dataset.
The "Cancel" button doesn't actually exit the activity. It creates another SpeciesListActivity on top of the stack. Same issue with delete but more serious. Try deleting a plant then click back button. It brings back the ViewSpeciesActivity again with the deleted plant. Attempting to add it to garden or edit info will crash the app.
Similar issue with the garden view. When user adds a plant by clicking "add to garden" in ViewSpeciesActivity, then click "view species list" or "view species" in the garden view... it gets very weird, try that and you'll know.