Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
This is done through the FragmentManager (
This line of code appears twice:
f.mView = NoSaveStateFrameLayout.wrap(f.mView);
The reason for this is backwards compatibility and it is better explained in the comment header of NoSaveStateFrameLayout which says:
/**
* Pre-Honeycomb versions of the platform don't have {@link View#setSaveFromParentEnabled(boolean)},
* so instead we insert this between the view and its parent.
*/
While this is needed pre-honeycomb,
there's no need form post-honeycomb to do this wrapping which cause deeper hierarchies = bad for performance.
A simple
if (Current-Api < 11) ...
before that line will fix the problem!
-----
Extended explanation with images can be found here:
THANK YOU!