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

Commit 23aad993 authored by Adrian Roos's avatar Adrian Roos Committed by android-build-merger
Browse files

Merge "Letterbox: make letterbox work with drag resizing" into pi-dev

am: ab3ffe41

Change-Id: I8efd0e9e90633147cbeaf22af9783ba30249e8ca
parents 1984d297 ab3ffe41
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -859,10 +859,12 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
        // If the task has temp inset bounds set, we have to make sure all its windows uses
        // the temp inset frame. Otherwise different display frames get applied to the main
        // window and the child window, making them misaligned.
        if (inFullscreenContainer || isLetterboxedAppWindow()) {
            mInsetFrame.setEmpty();
        } else if (task != null && isInMultiWindowMode()) {
        // Otherwise we need to clear the inset frame, to avoid using a stale frame after leaving
        // multi window mode.
        if (task != null && isInMultiWindowMode()) {
            task.getTempInsetBounds(mInsetFrame);
        } else {
            mInsetFrame.setEmpty();
        }

        // Denotes the actual frame used to calculate the insets and to perform the layout. When