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

Commit 0b728568 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Remove background scrim when there are no top insets." into ub-launcher3-dorval

parents b4c2f07c b8b48733
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -448,6 +448,12 @@ public class DragLayer extends InsettableFrameLayout {
        return isContainerOpen || mDragController.dispatchUnhandledMove(focused, direction);
    }

    @Override
    public void setInsets(Rect insets) {
        super.setInsets(insets);
        setBackgroundResource(insets.top == 0 ? 0 : R.drawable.workspace_bg);
    }

    @Override
    public LayoutParams generateLayoutParams(AttributeSet attrs) {
        return new LayoutParams(getContext(), attrs);