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

Commit b864abe3 authored by Robert Horvath's avatar Robert Horvath
Browse files

Remove keep clear areas when a view detaches

If a View detaches, its keep clear areas should no longer be considered
when placing a PiP.

Bug: 209577354
Test: atest KeepClearRectsTests#testIgnoreKeepClearRectsFromDetachedViews
Change-Id: I0caa74d4bef2ee157fc3f48747788e30752d09ad
parent 4d897c6a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -21142,6 +21142,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
        }
        notifyEnterOrExitForAutoFillIfNeeded(false);
        if (info != null && !collectPreferKeepClearRects().isEmpty()) {
            info.mViewRootImpl.updateKeepClearRectsForView(this);
        }
    }
    /**