Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b645fac6 authored by Automerger Merge Worker's avatar Automerger Merge Worker
Browse files

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

Change-Id: I080b521922267e596931c119f0870dff357adb0f
parents 9551e26c a07bc3ab
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -793,8 +793,13 @@ public final class ViewRootImpl implements ViewParent,

    public void setOnContentApplyWindowInsetsListener(OnContentApplyWindowInsetsListener listener) {
        mAttachInfo.mContentOnApplyWindowInsetsListener = listener;

        // 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) {
        synchronized (mWindowCallbacks) {