am d84e8a46: am 6bc01d4a: am 6229a0d5: am 6400b84d: Update custom content insets when Workspace insets are set
* commit 'd84e8a463d0c69036b9d75483405798cd01d025f': Update custom content insets when Workspace insets are set
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user