Merge "Fix unnecssary traversal for starting windows" into rvc-dev am: 432e0c7440 am: a07bc3ab3a
Change-Id: I2bb7c071a71b1d1419204a8a51054d519faa2fad
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user