My layout has a ViewPager with 3 Fragment. In the fragments, I've got a recyclerView populated from some arrayList and Maps. The output uses CardView with several buttons, and TextViews with dinamic data (buttons change the TextView values).
Everything working great, but now I'm implementing a Preference Activity. When I launch this Activity and then go back to my MainActivity, all the data changes are lost. Everything is showing its default value.
How can I handle or prevent this data loss?
Thank you!
EDIT: I came up with a solution, that at least for my purposes is fully working. Read this topic (I implemented that on my PreferenceActivity)..