Merge "Fix unnecssary traversal for starting windows" into rvc-dev am: 432e0c7440

Change-Id: I6daf891daa066110308158be930bd81a91aa4f10
This commit is contained in:
Automerger Merge Worker
2020-03-02 20:24:57 +00:00

View File

@@ -793,7 +793,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) {