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

Commit 48d6ac2f authored by Automerger Merge Worker's avatar Automerger Merge Worker Committed by Android (Google) Code Review
Browse files

Merge "Merge "Clean up existing a11y listeners when reparenting." into rvc-dev...

Merge "Merge "Clean up existing a11y listeners when reparenting." into rvc-dev am: 4d3059c0 am: 2e7a1c94" into rvc-d1-dev-plus-aosp
parents 46a73f67 8ba03d74
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -4776,6 +4776,9 @@ class DisplayContent extends WindowContainer<DisplayContent.DisplayChildWindowCo
     * @param sc The new SurfaceControl, where the DisplayContent's surfaces will be re-parented to.
     */
    void reparentDisplayContent(WindowState win, SurfaceControl sc) {
        if (mParentWindow != null) {
            mParentWindow.removeEmbeddedDisplayContent(this);
        }
        mParentWindow = win;
        mParentWindow.addEmbeddedDisplayContent(this);
        mParentSurfaceControl = sc;