Fix unnecssary traversal for starting windows
Test: AppTransitionTests#testColdLaunchFromLauncher Bug: 148985084 Change-Id: I526ad6d55c16b7b621229d142c1102dfd1cac1ad
This commit is contained in:
@@ -795,7 +795,12 @@ public final class ViewRootImpl implements ViewParent,
|
||||
|
||||
public void setOnContentApplyWindowInsetsListener(OnContentApplyWindowInsetsListener listener) {
|
||||
mAttachInfo.mContentOnApplyWindowInsetsListener = listener;
|
||||
requestFitSystemWindows();
|
||||
|
||||
// System windows will be fitted on first traversal, so no reason to request additional
|
||||
// (possibly getting executed after the first traversal).
|
||||
if (!mFirst) {
|
||||
requestFitSystemWindows();
|
||||
}
|
||||
}
|
||||
|
||||
public void addWindowCallbacks(WindowCallbacks callback) {
|
||||
|
||||
Reference in New Issue
Block a user