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

Commit 0cb9a795 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by android-build-merger
Browse files

Merge "Fix multi-window enter animation" into nyc-dev am: 0c54d2c3 am: 8ff8259c

am: 92d960cd

* commit '92d960cd':
  Fix multi-window enter animation

Change-Id: I967fe8a5160825ad1a85af9ff91b1b6640b28eeb
parents 50d3baa5 92d960cd
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1064,6 +1064,14 @@ public class DividerView extends FrameLayout implements OnTouchListener,
        int position = DockedDividerUtils.calculatePositionForBounds(event.initialRect,
                mDockSide, mDividerSize);
        mEntranceAnimationRunning = true;

        // Insets might not have been fetched yet, so fetch manually if needed.
        if (mStableInsets.isEmpty()) {
            SystemServicesProxy.getInstance(mContext).getStableInsets(mStableInsets);
            mSnapAlgorithm = null;
            initializeSnapAlgorithm();
        }

        resizeStack(position, mSnapAlgorithm.getMiddleTarget().position,
                mSnapAlgorithm.getMiddleTarget());
    }