team3663 / Scouting-App

Scouting app for CPR3663
4 stars 0 forks source link

call Settings activity with startActivityForResult #286

Open Jeff-Stammler opened 5 hours ago

Jeff-Stammler commented 5 hours ago

This is the proper way to pass information BACK to a calling activity with what happened in the child activity.

Currently we use a global variable, but then need to add a bunch of logic in the parent activity to know if we're starting from scratch, or coming back from settings.

Using this means it's cleaner and we have a special Interface that's called upon return that we can check if we need to reload data, and then do so. The onCreate is NOT called again.

Jeff-Stammler commented 5 hours ago

fixed in my branch