Made use of onSavedInstanceState in both FragmentA and FragmentB.

I have to be honest, before this, I never really applied all of the
videos about the Android Activity life cycle. Now it makes sense.