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

Commit 2d42f9fb authored by Riddle Hsu's avatar Riddle Hsu Committed by Android (Google) Code Review
Browse files

Merge "Update surface position on removing leash for a closing window" into main

parents 1bc3079d 68aa1083
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -5301,6 +5301,18 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
        }
    }

    @Override
    public void onAnimationLeashLost(Transaction t) {
        if (!mSurfacePlacementNeeded && mActivityRecord != null
                && !mActivityRecord.isVisibleRequested() && mActivityRecord.isVisible()
                && !mLastSurfacePosition.equals(mSurfacePosition)) {
            // The activity is closing but still visible. Make sure updateSurfacePosition() is not
            // skipped due to isGoneForLayout().
            mSurfacePlacementNeeded = true;
        }
        super.onAnimationLeashLost(t);
    }

    // TODO(b/70040778): We should aim to eliminate the last user of TYPE_APPLICATION_MEDIA
    // then we can drop all negative layering on the windowing side and simply inherit
    // the default implementation here.