Merge "Remove background scrim when there are no top insets." into ub-launcher3-dorval
am: 0b728568f1
Change-Id: I8ff077c0c5761e82e5ecd3bcd363738505d7172e
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user