Fix now showing on screen 1
Change-Id: I83c3aa0b219e62af8c024229fe00933bcedbf9df
This commit is contained in:
@@ -513,7 +513,7 @@ public class Workspace extends SmoothPagedView
|
||||
|
||||
public void addCustomContentToLeft(View customContent) {
|
||||
CellLayout customScreen = (CellLayout)
|
||||
mLauncher.getLayoutInflater().inflate(R.layout.workspace_custom_content, null);
|
||||
mLauncher.getLayoutInflater().inflate(R.layout.workspace_screen, null);
|
||||
|
||||
int spanX = customScreen.getCountX();
|
||||
int spanY = customScreen.getCountY();
|
||||
@@ -523,6 +523,10 @@ public class Workspace extends SmoothPagedView
|
||||
|
||||
customScreen.addViewToCellLayout(customContent, 0, 0, lp, true);
|
||||
|
||||
Rect p = new Rect();
|
||||
AppWidgetHostView.getDefaultPaddingForWidget(mLauncher, mLauncher.getComponentName(), p);
|
||||
customContent.setPadding(p.left, p.top, p.right, p.bottom);
|
||||
|
||||
addView(customScreen, 0);
|
||||
|
||||
mWorkspaceScreens.put(CUSTOM_CONTENT_SCREEN_ID, customScreen);
|
||||
|
||||
Reference in New Issue
Block a user