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

Commit ef328273 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Clean up existing a11y listeners when reparenting." into rvc-dev am: 4d3059c0

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11707943

Change-Id: I22ee77bd8804818e9d627ac4b2212d6f7290de82
parents 9a98c4c0 4d3059c0
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;