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

Commit 1f5a4c95 authored by Lucas Dupin's avatar Lucas Dupin Committed by Automerger Merge Worker
Browse files

Merge "Use launcher surface when removing launch target" into sc-dev am: e55878ce

Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Launcher3/+/15193282

Change-Id: If0f2f60cae7d7d00ab5cf386b32f00247af887d6
parents 94c09211 e55878ce
Loading
Loading
Loading
Loading
+6 −0
Original line number Original line Diff line number Diff line
@@ -180,6 +180,12 @@ public class DepthController implements StateHandler<LauncherState>,
     * Sets the specified app target surface to apply the blur to.
     * Sets the specified app target surface to apply the blur to.
     */
     */
    public void setSurface(SurfaceControl surface) {
    public void setSurface(SurfaceControl surface) {
        // Set launcher as the SurfaceControl when we don't need an external target anymore.
        if (surface == null) {
            ViewRootImpl viewRootImpl = mLauncher.getDragLayer().getViewRootImpl();
            surface = viewRootImpl != null ? viewRootImpl.getSurfaceControl() : null;
        }

        if (mSurface != surface) {
        if (mSurface != surface) {
            mSurface = surface;
            mSurface = surface;
            if (surface != null) {
            if (surface != null) {