-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Thanks to Aleksey Malevaniy for catching these problems and demonstrating fixes. This change fixes two problems with view state persistence in ActivityFlowSupport: 1. It was just throwing view state away when building the Parcelable to save in the Bundle. The fix is to move filtering into Backstack itself, so that it can build a Parcelable that includes view state. 2. It wasn (re)constructing the view hierarchy for the first time in onResume(), which is after restoreHierarchyState() is called. View state was therefore not getting properly restored. The fix is to rebuild the view hierarchy in onCreate(), so that it's there in time for restoreHierarchyState().
- Loading branch information
Showing
5 changed files
with
74 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters