Thanks for the article. Just 4 days ago I had a conversation on the very topic with a senior android developer. Just to confirm that I understand this correctly, as we are trying to change fragment after onSaveInstanceState() is called, we get the mentioned exception as no fragment transaction can take place between onPause() and onStop(). Also if we don’t make fragment transaction (example: only change text of a TextView), then will this exception be thrown or not?

Software Engineer @Zomato. Passionate about tech, music, movies, gaming, coffee and food! Find my writing at https://www.chaddha.me/

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store