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

Commit aa6235d8 authored by Jorim Jaggi's avatar Jorim Jaggi
Browse files

Fix unnecssary traversal for starting windows

Test: AppTransitionTests#testColdLaunchFromLauncher
Bug: 148985084
Change-Id: I526ad6d55c16b7b621229d142c1102dfd1cac1ad
parent e06e29bb
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -795,8 +795,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) {