agriculture-capstone / agritrader

Mobile trader application
Other
3 stars 2 forks source link

Fix back stack when navigating to a previous screen #249

Closed nscassar closed 6 years ago

nscassar commented 6 years ago

Fix bug where pressing the back button takes the user back through all the screens they visited, instead of the correct hierarchical 'back'.

A scenario could be like this: User clicks on farmer in *FarmerSearch* and gets taken to that farmers
 *Collect* page. The user then selects a *MilkEntry* and edits it, going through the *MilkEntryDetails* 
and *EditMilkEntry* pages. When the user hits back, instead of being taken to the *FarmerSearch*

There still exists the bug in which pressing the back button when viewing a farmer AFTER editing any entry and pressing save, where the user will have to press back through all of the most recently visited edit screens before being brought to the Farmer Search page. I'm testing this on master and it's reproducible every time