when an activity is resumed, how do I know when I should reload, or not do anything at all

Maybe I'm looking at this incorrectly, but lets say I have an activity that shows me details of some object. I can hit an edit button and now I can edit this object and use my rest api to update the object in the db. When the edit activity is completed and I'm navigated back to the details activity from which I started, how do I know if I should reload the item or not. If I didn't edit the item there is no sense in hitting the api to reload. Or is my update api supposed to be returning the edited object? and if so how would I pass that back to the details activity in which I came from?

Sign In or Register to comment.