Skip to content

Instantly share code, notes, and snippets.

@makzimi
Created November 2, 2022 21:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save makzimi/1193989efe6eb9eb641d1a758c197762 to your computer and use it in GitHub Desktop.
Save makzimi/1193989efe6eb9eb641d1a758c197762 to your computer and use it in GitHub Desktop.
TransactionTooLargeException_article_Activity.java
protected void onSaveInstanceState(@NonNull Bundle outState) {
outState.putBundle(WINDOW_HIERARCHY_TAG, mWindow.saveHierarchyState());
// Pay attention to this!
// Saving the states of all fragments
Parcelable p = mFragments.saveAllState();
if (p != null) {
outState.putParcelable(FRAGMENTS_TAG, p);
}
getAutofillClientController().onSaveInstanceState(outState);
dispatchActivitySaveInstanceState(outState);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment