* commit '6bc01d4a1b337290f056947a964d604514e5207f': Update custom content insets when Workspace insets are set
This commit is contained in:
@@ -334,6 +334,14 @@ public class Workspace extends SmoothPagedView
|
|||||||
@Override
|
@Override
|
||||||
public void setInsets(Rect insets) {
|
public void setInsets(Rect insets) {
|
||||||
mInsets.set(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
|
// estimate the size of a widget with spans hSpan, vSpan. return MAX_VALUE for each
|
||||||
|
|||||||
Reference in New Issue
Block a user