Checking if state is saved before committing a FragmentTransaction Checking if state is saved before committing a FragmentTransaction android android