cs1530-group1 / garden_app

our gardening app for 1530
GNU General Public License v2.0
0 stars 3 forks source link

App has serious issues with the back button #59

Open libertylocked opened 9 years ago

libertylocked commented 9 years ago

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.

chuckie512 commented 9 years ago

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.