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

Commit 6229a0d5 authored by Adam Cohen's avatar Adam Cohen Committed by Android Git Automerger
Browse files

am 6400b84d: Update custom content insets when Workspace insets are set

* commit '6400b84d':
  Update custom content insets when Workspace insets are set
parents 1eeb3fc9 6400b84d
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -334,6 +334,14 @@ public class Workspace extends SmoothPagedView
    @Override
    public void setInsets(Rect insets) {
        mInsets.set(insets);

        CellLayout customScreen = getScreenWithId(CUSTOM_CONTENT_SCREEN_ID);
        if (customScreen != null) {
            View customContent = customScreen.getShortcutsAndWidgets().getChildAt(0);
            if (customContent instanceof Insettable) {
                ((Insettable) customContent).setInsets(mInsets);
            }
        }
    }

    // estimate the size of a widget with spans hSpan, vSpan. return MAX_VALUE for each