Android reset activity component state on navigation back
- by Aure77
I have 2 activities in my application.
In activity1, I set some configuration and I modify the state of some component (ex: set button state disabled). And I navigate to activity2.
In activity2 I do some stuff and at end, I finish this activity and come back to activity1.
But In activity1, my components state are the same when I leave this activity.
How to reset the components state with valuesdeclared in XML file (layout) ?