Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save waseefakhtar/5beca675d7e8486d88d2da32215306c6 to your computer and use it in GitHub Desktop.
Save waseefakhtar/5beca675d7e8486d88d2da32215306c6 to your computer and use it in GitHub Desktop.
Demystifying Android's FragmentTransaction and solving "Can not perform this action after onSaveInstanceState"
java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1341)
at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1352)
at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:595)
at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:574)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment