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

Commit 09232ed9 authored by Ats Jenk's avatar Ats Jenk Committed by Android (Google) Code Review
Browse files

Merge "Remove shadow from fullscreen tasks" into main

parents e6ec3220 ba4a9ae5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -297,7 +297,7 @@ public abstract class WindowDecoration<T extends View & TaskFocusStateConsumer>
        }

        // Task surface itself
        float shadowRadius = loadDimension(resources, params.mShadowRadiusId);
        float shadowRadius;
        final Point taskPosition = mTaskInfo.positionInParent;
        if (isFullscreen) {
            // Setting the task crop to the width/height stops input events from being sent to
@@ -308,9 +308,12 @@ public abstract class WindowDecoration<T extends View & TaskFocusStateConsumer>
            // drag-resized by the window decoration.
            startT.setWindowCrop(mTaskSurface, null);
            finishT.setWindowCrop(mTaskSurface, null);
            // Shadow is not needed for fullscreen tasks
            shadowRadius = 0;
        } else {
            startT.setWindowCrop(mTaskSurface, outResult.mWidth, outResult.mHeight);
            finishT.setWindowCrop(mTaskSurface, outResult.mWidth, outResult.mHeight);
            shadowRadius = loadDimension(resources, params.mShadowRadiusId);
        }
        startT.setShadowRadius(mTaskSurface, shadowRadius)
                .show(mTaskSurface);